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

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 20 09:27: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());
----------------
lukel97 wrote:

How come we don't use runPass for simplfiyRecipes?

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


More information about the llvm-commits mailing list