[globalisel][tablegen] Honour priority order within nested instructions.

It appears that we haven't been prioritizing rules that contain nested
instructions properly. InstructionOperandMatcher didn't override
isHigherPriorityThan so it never compared the instructions/operands/predicates
inside nested instructions.

Fixes PR35926. Thanks to Diana Picus for the bug report.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@322754 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed