[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
Mon Apr 14 02:29:41 PDT 2025


================
@@ -17602,14 +17604,11 @@ Value *BoUpSLP::vectorizeTree(TreeEntry *E) {
             *TLI, [](Value *) { return true; }, IsMasked, InterleaveFactor,
             CompressMask, LoadVecTy);
         assert(IsVectorized && "Expected to be vectorized");
-        Align CommonAlignment;
-        if (IsMasked)
-          CommonAlignment = computeCommonAlignment<LoadInst>(E->Scalars);
-        else
-          CommonAlignment = LI->getAlign();
+        Align CommonAlignment = LI->getAlign();
----------------
gbossu wrote:

Curious: Why was `computeCommonAlignment()` needed before?

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


More information about the llvm-commits mailing list