[AArch64][GlobalISel] Recognise some CCMPri
authorDavid Green <david.green@arm.com>
Fri, 5 Aug 2022 06:48:42 +0000 (07:48 +0100)
committerDavid Green <david.green@arm.com>
Fri, 5 Aug 2022 06:48:42 +0000 (07:48 +0100)
commit38c2366b3ffcc11da178b8d52814ef609e08d40f
treecc24206d76caca104548c28280a6c5abaa145cb8
parentb2c9ff727379992ef472e32620635b7e5d561d60
[AArch64][GlobalISel] Recognise some CCMPri

This is a simple addition to emitConditionalComparison, to match CCMP
with immediates using getIConstantVRegValWithLookThrough, letting it
select the CCMPri variants of the instructions.

Differential Revision: https://reviews.llvm.org/D131073
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/arm64-ccmp.ll