Skip to content

Commit 239b52d

Browse files
committed
[VPlan] Update stale comment (NFC).
Update comment to reflect current code, which also allows for VPScalarIVStepsRecipes to be uniform. Suggested by @ayal during review of D136068, thanks!
1 parent 0e00611 commit 239b52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9873,7 +9873,7 @@ Value *VPTransformState::get(VPValue *Def, unsigned Part) {
98739873
unsigned LastLane = IsUniform ? 0 : VF.getKnownMinValue() - 1;
98749874
// Check if there is a scalar value for the selected lane.
98759875
if (!hasScalarValue(Def, {Part, LastLane})) {
9876-
// At the moment, VPWidenIntOrFpInductionRecipes can also be uniform.
9876+
// At the moment, VPWidenIntOrFpInductionRecipes and VPScalarIVStepsRecipes can also be uniform.
98779877
assert((isa<VPWidenIntOrFpInductionRecipe>(Def->getDefiningRecipe()) ||
98789878
isa<VPScalarIVStepsRecipe>(Def->getDefiningRecipe())) &&
98799879
"unexpected recipe found to be invariant");

0 commit comments

Comments
 (0)