[llvm] [DAG] Handle truncated splat in isBoolConstant (PR #145473)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 02:33:50 PDT 2025


================
@@ -4375,6 +4375,8 @@ class LLVM_ABI TargetLowering : public TargetLoweringBase {
            Op.getOpcode() == ISD::SPLAT_VECTOR_PARTS;
   }
 
+  virtual bool isTargetCanonicalSelect(SDNode *N) const { return false; }
----------------
phoebewang wrote:

X86DAGToDAGISel sounds good to me. We have hundreds of AVX512 instructions, adding patterns for them is too verbose.

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


More information about the llvm-commits mailing list