[llvm] [SLP]Prefer segmented/deinterleaved loads to strided and fix codegen (PR #135058)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 15 07:00:24 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;
----------------
alexey-bataev wrote:
1. Do not see any benefits in adding extra function
2. I don't like the approach with optional pointer params and trying to avoid it.
https://github.com/llvm/llvm-project/pull/135058
More information about the llvm-commits
mailing list