[llvm] [VPlan] Add helper to run VPlan passes, verify after run (NFC). (PR #123640)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 06:12:24 PST 2025


================
@@ -1439,19 +1440,19 @@ void VPlanTransforms::truncateToMinimalBitwidths(
 }
 
 void VPlanTransforms::optimize(VPlan &Plan) {
-  removeRedundantCanonicalIVs(Plan);
-  removeRedundantInductionCasts(Plan);
+  runPass(removeRedundantCanonicalIVs, Plan);
+  runPass(removeRedundantInductionCasts, Plan);
 
   simplifyRecipes(Plan, Plan.getCanonicalIV()->getScalarType());
----------------
fhahn wrote:

Updated to also run `simplifyRecipes`; needed passing the canonical IV type by reference 

https://github.com/llvm/llvm-project/pull/123640


More information about the llvm-commits mailing list