[llvm] [AArch64][GlobalISel] Select G_ICMP instruction through TableGen (PR #89932)

via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 08:28:53 PDT 2024


================
@@ -5376,6 +5376,51 @@ def : Pat<(AArch64bsp (v4i32 V128:$Rd), V128:$Rn, V128:$Rm),
 def : Pat<(AArch64bsp (v2i64 V128:$Rd), V128:$Rn, V128:$Rm),
           (BSPv16i8 V128:$Rd, V128:$Rn, V128:$Rm)>;
 
+multiclass SelectSetCC<PatFrags InFrag, string INST> {
----------------
chuongg3 wrote:

For selection DAG, `AArch64ISD::CMEQ` is used after legalization instead of setcc, so it should not be using the pattern.
I will include a comment to specify that this pattern was added for GlobalISel.

https://github.com/llvm/llvm-project/pull/89932


More information about the llvm-commits mailing list