[llvm] 6f582b7 - [SLP][NFC]Remove extra check for VU.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 05:39:55 PDT 2024
Author: Alexey Bataev
Date: 2024-06-26T05:39:37-07:00
New Revision: 6f582b7ed3dcd220a2154b617d6469c142805d7c
URL: https://github.com/llvm/llvm-project/commit/6f582b7ed3dcd220a2154b617d6469c142805d7c
DIFF: https://github.com/llvm/llvm-project/commit/6f582b7ed3dcd220a2154b617d6469c142805d7c.diff
LOG: [SLP][NFC]Remove extra check for VU.
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 38daa86e21ad8..974f966d46e81 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -13770,7 +13770,7 @@ Value *BoUpSLP::vectorizeTree(
}
if (auto *VU = dyn_cast<InsertElementInst>(User);
- VU && VU && VU->getOperand(1) == Scalar) {
+ VU && VU->getOperand(1) == Scalar) {
// Skip if the scalar is another vector op or Vec is not an instruction.
if (!Scalar->getType()->isVectorTy() && isa<Instruction>(Vec)) {
if (auto *FTy = dyn_cast<FixedVectorType>(User->getType())) {
More information about the llvm-commits
mailing list