[PATCH] D144895: [SLP] Fixes crash in BoUpSLP::isGatherShuffledEntry()
Alexey Bataev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 27 10:47:08 PST 2023
ABataev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:8410-8411
// Clear undef scalars.
- for (int I = 0, Sz = VL.size(); I < Sz; ++I)
+ for (int I = 0, Sz = TE->Scalars.size(); I < Sz; ++I)
if (isa<PoisonValue>(TE->Scalars[I]))
Mask[I] = UndefMaskElem;
----------------
Better to replace `TE->Scalars[I]` with `VL[I]`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144895/new/
https://reviews.llvm.org/D144895
More information about the llvm-commits
mailing list