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() {
1670
1670
const SCEV *EC =
1671
1671
PSE.getSE ()->getPredicatedExitCount (TheLoop, BB, &Predicates);
1672
1672
if (isa<SCEVCouldNotCompute>(EC)) {
1673
- SmallVector<BasicBlock *, 2 > Succs (successors (BB));
1674
- if (Succs.size () != 2 ) {
1673
+ if (size (successors (BB)) != 2 ) {
1675
1674
reportVectorizationFailure (
1676
1675
" Early exiting block does not have exactly two successors" ,
1677
1676
" Incorrect number of successors from early exiting block" ,
1678
1677
" EarlyExitTooManySuccessors" , ORE, TheLoop);
1679
1678
return false ;
1680
1679
}
1681
1680
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
-
1690
1681
if (SingleUncountableExitingBlock) {
1691
1682
reportVectorizationFailure (
1692
1683
" Loop has too many uncountable exits" ,
You can’t perform that action at this time.
0 commit comments