[llvm] [VPlan] Sink recipes from the vector loop region in licm. (PR #168031)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 2 03:18:15 PST 2026
================
@@ -2550,6 +2550,66 @@ static void licm(VPlan &Plan) {
R.moveBefore(*Preheader, Preheader->end());
}
}
+
+#ifndef NDEBUG
+ VPDominatorTree VPDT(Plan);
+#endif
+ // Sink recipes with no users inside the vector loop region into a dedicated
+ // exit block.
----------------
fhahn wrote:
```suggestion
// Sink recipes with no users inside the vector loop region if all users are in the same exit block of the region.
```
https://github.com/llvm/llvm-project/pull/168031
More information about the llvm-commits
mailing list