[llvm] [X86] SimplifyDemandedVectorEltsForTargetNode - reduce the size of VPERMV v16f32/v16i32 nodes if the upper elements are not demanded (PR #134890)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 9 01:45:26 PDT 2025


================
@@ -43810,7 +43810,9 @@ bool X86TargetLowering::SimplifyDemandedVectorEltsForTargetNode(
     case X86ISD::VPERMV: {
       SmallVector<int, 16> Mask;
       SmallVector<SDValue, 2> Ops;
-      if ((VT.is256BitVector() || Subtarget.hasVLX()) &&
+      // We can always split v16i32/v16f32 AVX512 to v8i32/v8f32 AVX2 variants.
----------------
phoebewang wrote:

Ok, it's quite queer.

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


More information about the llvm-commits mailing list