File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff 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" ,
You can’t perform that action at this time.
0 commit comments