Skip to content

Commit cab7538

Browse files
committed
[VPlan] Only generate exit blocks for unique exit blocks.
Make sure we don't generate unnecessary blocks.
1 parent c27a958 commit cab7538

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ VPlan::VPlan(Loop *L) {
858858
ScalarHeader = createVPIRBasicBlock(L->getHeader());
859859

860860
SmallVector<BasicBlock *> IRExitBlocks;
861-
L->getExitBlocks(IRExitBlocks);
861+
L->getUniqueExitBlocks(IRExitBlocks);
862862
for (BasicBlock *EB : IRExitBlocks)
863863
ExitBlocks.push_back(createVPIRBasicBlock(EB));
864864
}

0 commit comments

Comments
 (0)