[llvm] [SandboxVec][LoadStoreVec] Vectorize load seed chains (PR #215944)
Anshil Gandhi via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 06:56:51 PDT 2026
================
@@ -49,14 +50,31 @@ class LLVM_ABI LoadStoreVec final : public RegionPass {
std::optional<Type *> canVectorize(ArrayRef<Instruction *> Bndl,
Scheduler &Sched);
- void tryEraseDeadInstrs(ArrayRef<Instruction *> Stores,
- ArrayRef<Value *> Operands);
+ /// Builds a single vector load out of the loads in \p Operands. \Returns
+ /// the new load, or nullptr if \p Operands are not a vectorizable load
+ /// chain.
+ Value *createVectorLoad(ArrayRef<Value *> Operands, Scheduler &Sched,
+ const Analyses &A, Context &Ctx);
- /// Tries to vectorize the load/store/constant ops chain \p Bndl
- /// into a single vector store. \Returns whether it succeeded.
+ /// Flattens constant store operands in \p Operands (including vector and
----------------
gandhi56 wrote:
Hopefully it's clearer now.
https://github.com/llvm/llvm-project/pull/215944
More information about the llvm-commits
mailing list