[go: nahoru, domu]

Skip to content

Commit

Permalink
[SLP][NFC]Remove extra check for VU.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-bataev committed Jun 26, 2024
1 parent 92715cf commit 6f582b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down

0 comments on commit 6f582b7

Please sign in to comment.