[llvm] [SLP] Initial support for masked stores (PR #204893)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 14:49:04 PDT 2026
================
@@ -32891,6 +33086,28 @@ bool SLPVectorizerPass::vectorizeStoreChains(BoUpSLP &R) {
V2->getValueOperand()->getValueID();
};
+ // Returns true if any two stores in the group are at consecutive (stride-1)
+ // addresses. Masked stores are disabled for the entire base-object group when
+ // this is true - consecutive vectorization is always preferred.
+ auto HasConsecutiveStores = [&](ArrayRef<StoreInst *> SIs) {
----------------
alexey-bataev wrote:
But let's exit early, just on case
https://github.com/llvm/llvm-project/pull/204893
More information about the llvm-commits
mailing list