Skip to content

Commit 7d815c7

Browse files
committed
[LV] Remove unused variables after 965231c. (NFC)
Clean up unused/dead variables after 965231c (#151311)
1 parent f04ea2e commit 7d815c7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,23 +1670,14 @@ bool LoopVectorizationLegality::isVectorizableEarlyExitLoop() {
16701670
const SCEV *EC =
16711671
PSE.getSE()->getPredicatedExitCount(TheLoop, BB, &Predicates);
16721672
if (isa<SCEVCouldNotCompute>(EC)) {
1673-
SmallVector<BasicBlock *, 2> Succs(successors(BB));
1674-
if (Succs.size() != 2) {
1673+
if (size(successors(BB)) != 2) {
16751674
reportVectorizationFailure(
16761675
"Early exiting block does not have exactly two successors",
16771676
"Incorrect number of successors from early exiting block",
16781677
"EarlyExitTooManySuccessors", ORE, TheLoop);
16791678
return false;
16801679
}
16811680

1682-
BasicBlock *ExitBlock;
1683-
if (!TheLoop->contains(Succs[0]))
1684-
ExitBlock = Succs[0];
1685-
else {
1686-
assert(!TheLoop->contains(Succs[1]));
1687-
ExitBlock = Succs[1];
1688-
}
1689-
16901681
if (SingleUncountableExitingBlock) {
16911682
reportVectorizationFailure(
16921683
"Loop has too many uncountable exits",

0 commit comments

Comments
 (0)