[globalisel][tablegen] Honour priority order within nested instructions.
authorDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 17 Jan 2018 20:34:29 +0000 (20:34 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Wed, 17 Jan 2018 20:34:29 +0000 (20:34 +0000)
commit12e6e709e96924733f9e5ff4ccd7cd036c5bd7cc
tree543ec3a8da2591c68087fb60ed90da553583c1b4
parentd703ec94a95221c2916f5a89304673d65639527e
[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.

llvm-svn: 322754
llvm/test/CodeGen/ARM/GlobalISel/select-pr35926.mir [new file with mode: 0644]
llvm/utils/TableGen/GlobalISelEmitter.cpp