[flang-commits] [llvm] [compiler-rt] [clang] [flang] [clang-tools-extra] [VPlan] Replace VPRecipeOrVPValue with VP2VP recipe simplification. (PR #76090)

Florian Hahn via flang-commits flang-commits at lists.llvm.org
Tue Jan 16 14:05:29 PST 2024


================
@@ -996,8 +1028,8 @@ void VPlanTransforms::optimize(VPlan &Plan, ScalarEvolution &SE) {
   removeRedundantCanonicalIVs(Plan);
   removeRedundantInductionCasts(Plan);
 
-  optimizeInductions(Plan, SE);
   simplifyRecipes(Plan, SE.getContext());
+  optimizeInductions(Plan, SE);
----------------
fhahn wrote:

Without the change, here's a function in `lvm/test/Transforms/LoopVectorize/single-value-blend-phis.ll` where `optimizeInductions` won't simplify an induction, because there's a wide blend use left.

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


More information about the flang-commits mailing list