[llvm] [SLP] Fix handling of strided loads during re-vectorization (PR #191294)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 12 11:37:46 PDT 2026


================
@@ -7243,16 +7243,17 @@ bool BoUpSLP::analyzeConstantStrideCandidate(
   // Quick detour: at this point we can say what the type of strided load would
   // be if all the checks pass. Check if this type is legal for the target.
   bool NeedsWidening = Sz != GroupSize;
+  const uint64_t UnitBitWidth = DL->getTypeSizeInBits(ScalarTy).getFixedValue();
----------------
alexey-bataev wrote:

Do we need the same fix for runtime strides?

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


More information about the llvm-commits mailing list