[llvm] [SDAG][ISel][TableGen] Do not skip through bitcasts when there are predicate calls (PR #116075)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 08:49:27 PST 2024


topperc wrote:

No tests fail if you just delete the bitconvert from the pattern

```
diff --git a/llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td b/llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
index 250896cbbe5f..2caf7e0d1908 100644
--- a/llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+++ b/llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
@@ -75,7 +75,7 @@ class VecCond<SDPatternOperator OpNode, ValueType TyNode,
 }
 
 def vsplat_imm_eq_1 : PatFrags<(ops), [(build_vector),
-                                       (bitconvert (v4i32 (build_vector)))], [{
+                                       ], [{
   APInt Imm;
   EVT EltTy = N->getValueType(0).getVectorElementType();
 

```

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


More information about the llvm-commits mailing list