[AArch64][GlobalISel] Recognise some CCMPri
authorDavid Green <david.green@arm.com>
Mon, 5 Sep 2022 18:43:23 +0000 (19:43 +0100)
committerDavid Green <david.green@arm.com>
Mon, 5 Sep 2022 18:43:23 +0000 (19:43 +0100)
commit3c6edc0b2f812503a802bdd9c5842a0a9396b8c1
tree08ea1a252afd62d98a391c0173cc407ed08a6784
parent2417618d5ca4b151908df09d8e3a00a49f029222
[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