[llvm] [SLP] Use costing to decide between Strided Loads and Compressed Loads (PR #226540)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 2 12:00:29 PDT 2026
================
@@ -17494,8 +17445,16 @@ BoUpSLP::getEntryCost(const TreeEntry *E, ArrayRef<Value *> VectorizedVals,
SmallVector<Value *> PointerOps(Scalars.size());
for (auto [I, V] : enumerate(Scalars))
PointerOps[I] = cast<LoadInst>(V)->getPointerOperand();
- VecLdCost = getCompressedLoadCost(Scalars, PointerOps,
- E->ReorderIndices, LI0, E);
+ CompressedLoadInfo CompressInfo;
+ bool IsVectorized = isMaskedLoadCompress(
----------------
alexey-bataev wrote:
```suggestion
[[maybe_unused]] bool IsVectorized = isMaskedLoadCompress(
```
https://github.com/llvm/llvm-project/pull/226540
More information about the llvm-commits
mailing list