[llvm] f1d5e70 - [SLP][NFC]Do not check poison values for corresponding vectorized entries
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 06:38:35 PST 2025
Author: Alexey Bataev
Date: 2025-01-27T06:38:23-08:00
New Revision: f1d5e70a00fbc80f42977800e9299353b06d48cb
URL: https://github.com/llvm/llvm-project/commit/f1d5e70a00fbc80f42977800e9299353b06d48cb
DIFF: https://github.com/llvm/llvm-project/commit/f1d5e70a00fbc80f42977800e9299353b06d48cb.diff
LOG: [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.
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index eea6b32460d70c..640fcb56aab19b 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -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!");
More information about the llvm-commits
mailing list