Skip to content

Commit e268f71

Browse files
committed
[VPlan] Remove unneeded early continue. (NFC)
As suggested in #136455, now unreachable exit blocks won't have any phi nodes.
1 parent 0c61b24 commit e268f71

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9287,10 +9287,6 @@ static void addScalarResumePhis(VPRecipeBuilder &Builder, VPlan &Plan,
92879287
static SetVector<VPIRInstruction *> collectUsersInLatchExitBlock(VPlan &Plan) {
92889288
SetVector<VPIRInstruction *> ExitUsersToFix;
92899289
for (VPIRBasicBlock *ExitVPBB : Plan.getExitBlocks()) {
9290-
// Nothing to do for unreachable exit blocks.
9291-
if (ExitVPBB->getNumPredecessors() == 0)
9292-
continue;
9293-
92949290
for (VPRecipeBase &R : ExitVPBB->phis()) {
92959291
auto *ExitIRI = cast<VPIRPhi>(&R);
92969292
if (ExitVPBB->getSinglePredecessor() != Plan.getMiddleBlock()) {

0 commit comments

Comments
 (0)