We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5d6b6a commit 895a392Copy full SHA for 895a392
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -13770,7 +13770,7 @@ Value *BoUpSLP::vectorizeTree(
13770
}
13771
13772
if (auto *VU = dyn_cast<InsertElementInst>(User);
13773
- VU && VU && VU->getOperand(1) == Scalar) {
+ VU && VU->getOperand(1) == Scalar) {
13774
// Skip if the scalar is another vector op or Vec is not an instruction.
13775
if (!Scalar->getType()->isVectorTy() && isa<Instruction>(Vec)) {
13776
if (auto *FTy = dyn_cast<FixedVectorType>(User->getType())) {
0 commit comments