Skip to content

Commit b5632e0

Browse files
fhahngithub-actions[bot]
authored andcommitted
Automerge: [VPlan] Remove unneeded early continue. (NFC)
As suggested in llvm/llvm-project#136455, now unreachable exit blocks won't have any phi nodes.
2 parents fa9cb14 + e268f71 commit b5632e0

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)