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

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 12 07:46:48 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.
----------------
phoebewang wrote:

I'm OK with adding it later with test case. Maybe leave a comment here for now.

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


More information about the llvm-commits mailing list