Skip to content

Commit

Permalink
[SLP][NFC]Do not check poison values for corresponding vectorized ent…
Browse files Browse the repository at this point in the history
…ries

No need to check poison values if they have been vectorized and/or mark
them as vectorized, it should work only for instructions.
  • Loading branch information
alexey-bataev committed Jan 27, 2025
1 parent f95a8bd commit f1d5e70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3643,6 +3643,8 @@ class BoUpSLP {
}
if (!Last->isGather()) {
for (Value *V : VL) {
if (isa<PoisonValue>(V))
continue;
const TreeEntry *TE = getTreeEntry(V);
assert((!TE || TE == Last || doesNotNeedToBeScheduled(V)) &&
"Scalar already in tree!");
Expand Down

0 comments on commit f1d5e70

Please sign in to comment.