[llvm] [VPlan] Delay adding canonical IV increment and exit branches. (PR #82270)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 14:16:02 PDT 2024


================
@@ -8991,7 +8986,7 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
       PreviousLink = RedRecipe;
     }
   }
-  Builder.setInsertPoint(&*LatchVPBB->begin());
+  Builder.setInsertPoint(LatchVPBB, LatchVPBB->begin());
----------------
fhahn wrote:

Undone in the latest version as it now still introduces the branch early.

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


More information about the llvm-commits mailing list