Skip to content

Commit

Permalink
[VPlan] Remove stale comment from optimizeInductions (NFC).
Browse files Browse the repository at this point in the history
As suggested post-commit for a002271, remove the stale comment,
SetVector is no longer used here.
  • Loading branch information
fhahn committed Dec 15, 2023
1 parent 3e16152 commit 9277ef1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,7 @@ void VPlanTransforms::optimizeInductions(VPlan &Plan, ScalarEvolution &SE) {
Plan, ID, SE, WideIV->getTruncInst(), WideIV->getPHINode()->getType(),
WideIV->getStartValue(), WideIV->getStepValue());

// Update scalar users of IV to use Step instead. Use SetVector to ensure
// the list of users doesn't contain duplicates.
// Update scalar users of IV to use Step instead.
WideIV->replaceUsesWithIf(
Steps, [HasOnlyVectorVFs, WideIV](VPUser &U, unsigned) {
return !HasOnlyVectorVFs || U.usesScalars(WideIV);
Expand Down

0 comments on commit 9277ef1

Please sign in to comment.