[llvm] [X86] SimplifyDemandedVectorEltsForTargetNode - reduce width of X86 conversions nodes when upper elements are not demanded. (PR #102882)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 12 07:39:37 PDT 2024


================
@@ -42518,6 +42518,25 @@ bool X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(
       SDValue Insert =
           insertSubVector(UndefVec, ExtOp, 0, TLO.DAG, DL, ExtSizeInBits);
       return TLO.CombineTo(Op, Insert);
+    }
+      // Conversions.
----------------
RKSimon wrote:

Absolutely, I was thinking of adding them when I have test cases - but I can try to add them all now if you prefer?

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


More information about the llvm-commits mailing list