[llvm] [WIP][VPlan] Sink recipes from the vector loop region in licm. (PR #168031)

Mel Chen via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 21 06:44:09 PST 2025


================
@@ -2250,6 +2280,13 @@ static void licm(VPlan &Plan) {
   }
 }
 
+/// Move loop-invariant recipes out of the vector loop region in \p Plan.
+static void licm(VPlan &Plan) {
+  VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion();
+  sinkRecipesFromLoopRegion(LoopRegion);
+  hoistRecipesFromLoopRegion(LoopRegion);
----------------
Mel-Chen wrote:

215ed550e5658adca9eb25476f357e2a409997d4
Remove them.

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


More information about the llvm-commits mailing list