Skip to content

Commit 7052337

Browse files
committed
!fixup address comments, thanks
1 parent a854ca7 commit 7052337

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9370,8 +9370,7 @@ static void addScalarResumePhis(VPRecipeBuilder &Builder, VPlan &Plan,
93709370
}
93719371
}
93729372

9373-
// Collect VPIRInstructions for phis in the exit blocks that are modeled
9374-
// in VPlan and add the exiting VPValue as operand.
9373+
// Collect VPIRInstructions for phis in the exit block from the latch only.
93759374
static SetVector<VPIRInstruction *>
93769375
collectUsersInExitBlocks(Loop *OrigLoop, VPRecipeBuilder &Builder,
93779376
VPlan &Plan) {
@@ -9392,6 +9391,7 @@ collectUsersInExitBlocks(Loop *OrigLoop, VPRecipeBuilder &Builder,
93929391
continue;
93939392
}
93949393

9394+
assert(ExitIRI->getNumOperands() == 1 && "must have a single operand");
93959395
VPValue *V = ExitIRI->getOperand(0);
93969396
if (V->isLiveIn())
93979397
continue;

0 commit comments

Comments
 (0)