Skip to content

Commit 895a392

Browse files
alexey-bataevAlexisPerry
authored andcommitted
[SLP][NFC]Remove extra check for VU.
1 parent d5d6b6a commit 895a392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13770,7 +13770,7 @@ Value *BoUpSLP::vectorizeTree(
1377013770
}
1377113771

1377213772
if (auto *VU = dyn_cast<InsertElementInst>(User);
13773-
VU && VU && VU->getOperand(1) == Scalar) {
13773+
VU && VU->getOperand(1) == Scalar) {
1377413774
// Skip if the scalar is another vector op or Vec is not an instruction.
1377513775
if (!Scalar->getType()->isVectorTy() && isa<Instruction>(Vec)) {
1377613776
if (auto *FTy = dyn_cast<FixedVectorType>(User->getType())) {

0 commit comments

Comments
 (0)