[llvm] [LV] Transform to handle exits in the scalar loop (PR #148626)

Graham Hunter via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 04:18:39 PST 2025


================
@@ -4224,12 +4232,17 @@ class VPlan {
   /// Returns the preheader of the vector loop region, if one exists, or null
   /// otherwise.
   VPBasicBlock *getVectorPreheader() {
+    if (EarlyExitPreheader)
----------------
huntergr-arm wrote:

The problem I faced was check blocks being generated out of order, even though they appeared correct in the printed vplan. So I've forced it this way to get things working; I'll look for something better.

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


More information about the llvm-commits mailing list