File tree Expand file tree Collapse file tree 2 files changed +5
-80
lines changed
test/Transforms/SLPVectorizer/X86 Expand file tree Collapse file tree 2 files changed +5
-80
lines changed Original file line number Diff line number Diff line change @@ -12592,11 +12592,6 @@ Value *BoUpSLP::vectorizeTree(
12592
12592
} else {
12593
12593
Ex = Builder.CreateExtractElement(Vec, Lane);
12594
12594
}
12595
- // If necessary, sign-extend or zero-extend ScalarRoot
12596
- // to the larger type.
12597
- if (Scalar->getType() != Ex->getType())
12598
- Ex = Builder.CreateIntCast(Ex, Scalar->getType(),
12599
- MinBWs.find(E)->second.second);
12600
12595
if (auto *I = dyn_cast<Instruction>(Ex))
12601
12596
ScalarToEEs[Scalar].try_emplace(Builder.GetInsertBlock(), I);
12602
12597
}
@@ -12606,6 +12601,11 @@ Value *BoUpSLP::vectorizeTree(
12606
12601
GatherShuffleExtractSeq.insert(ExI);
12607
12602
CSEBlocks.insert(ExI->getParent());
12608
12603
}
12604
+ // If necessary, sign-extend or zero-extend ScalarRoot
12605
+ // to the larger type.
12606
+ if (Scalar->getType() != Ex->getType())
12607
+ return Builder.CreateIntCast(Ex, Scalar->getType(),
12608
+ MinBWs.find(E)->second.second);
12609
12609
return Ex;
12610
12610
}
12611
12611
assert(isa<FixedVectorType>(Scalar->getType()) &&
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments