[llvm] [SLP]Prefer segmented/deinterleaved loads to strided and fix codegen (PR #135058)

Gaëtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 08:26:16 PDT 2025


================
@@ -5787,6 +5789,18 @@ BoUpSLP::canVectorizeLoads(ArrayRef<Value *> VL, const Value *VL0,
     // Check that the sorted loads are consecutive.
     if (static_cast<unsigned>(*Diff) == Sz - 1)
       return LoadsState::Vectorize;
+    bool IsMasked;
+    unsigned InterleaveFactor;
+    SmallVector<int> CompressMask;
+    VectorType *LoadVecTy;
----------------
gbossu wrote:

I understand there is no point for you, but reducing code bloat is very important to improve readability. And improving readability is very important to enable others to contribute. Just give it a thought 🙂 

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


More information about the llvm-commits mailing list