[ARM] Ignore Implicit CPSR regs when lowering from Machine to MC operands
commitec89cafc1da44c54dfe799371f8a294149924564
authorDavid Green <david.green@arm.com>
Tue, 3 Sep 2019 11:30:54 +0000 (3 11:30 +0000)
committerDavid Green <david.green@arm.com>
Tue, 3 Sep 2019 11:30:54 +0000 (3 11:30 +0000)
treed9303689d5d25aa71962c7ced51138e96364032f
parente491ffc9577d05855d838a72d6fe285d264f885d
[ARM] Ignore Implicit CPSR regs when lowering from Machine to MC operands

The code here seems to date back to r134705, when tablegen lowering was first
being added. I don't believe that we need to include CPSR implicit operands on
the MCInst. This now works more like other backends (like AArch64), where all
implicit registers are skipped.

This allows the AliasInst for CSEL's to match correctly, as can be seen in the
test changes.

Differential revision: https://reviews.llvm.org/D66703

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370745 91177308-0d34-0410-b5e6-96231b3b80d8
20 files changed:
lib/Target/ARM/ARMMCInstLower.cpp
test/CodeGen/Thumb2/csel.ll
test/CodeGen/Thumb2/mve-abs.ll
test/CodeGen/Thumb2/mve-fmath.ll
test/CodeGen/Thumb2/mve-minmax.ll
test/CodeGen/Thumb2/mve-pred-and.ll
test/CodeGen/Thumb2/mve-pred-bitcast.ll
test/CodeGen/Thumb2/mve-pred-build-var.ll
test/CodeGen/Thumb2/mve-pred-ext.ll
test/CodeGen/Thumb2/mve-pred-loadstore.ll
test/CodeGen/Thumb2/mve-pred-not.ll
test/CodeGen/Thumb2/mve-pred-or.ll
test/CodeGen/Thumb2/mve-pred-xor.ll
test/CodeGen/Thumb2/mve-vcmp.ll
test/CodeGen/Thumb2/mve-vcmpf.ll
test/CodeGen/Thumb2/mve-vcmpfr.ll
test/CodeGen/Thumb2/mve-vcmpfz.ll
test/CodeGen/Thumb2/mve-vcmpr.ll
test/CodeGen/Thumb2/mve-vcmpz.ll
test/MC/ARM/thumbv8.1m.s