[llvm] 9277ef1 - [VPlan] Remove stale comment from optimizeInductions (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 09:36:18 PST 2023


Author: Florian Hahn
Date: 2023-12-15T17:35:13Z
New Revision: 9277ef12c03932d864104d4079a2f3c8d87d4864

URL: https://github.com/llvm/llvm-project/commit/9277ef12c03932d864104d4079a2f3c8d87d4864
DIFF: https://github.com/llvm/llvm-project/commit/9277ef12c03932d864104d4079a2f3c8d87d4864.diff

LOG: [VPlan] Remove stale comment from optimizeInductions (NFC).

As suggested post-commit for a00227197, remove the stale comment,
SetVector is no longer used here.

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index ea90ed4a21b1a..570da97c3cfaf 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -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);


        


More information about the llvm-commits mailing list