Skip to content

Commit f1d5e70

Browse files
committed
[SLP][NFC]Do not check poison values for corresponding vectorized entries
No need to check poison values if they have been vectorized and/or mark them as vectorized, it should work only for instructions.
1 parent f95a8bd commit f1d5e70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3643,6 +3643,8 @@ class BoUpSLP {
36433643
}
36443644
if (!Last->isGather()) {
36453645
for (Value *V : VL) {
3646+
if (isa<PoisonValue>(V))
3647+
continue;
36463648
const TreeEntry *TE = getTreeEntry(V);
36473649
assert((!TE || TE == Last || doesNotNeedToBeScheduled(V)) &&
36483650
"Scalar already in tree!");

0 commit comments

Comments
 (0)