[llvm] [LV] Vectorize uncountable early exit store loops with combined conditions (PR #205109)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 07:52:51 PDT 2026


================
@@ -4659,6 +4659,61 @@ bool VPlanTransforms::handleUncountableEarlyExits(
     }
   }
 
+  // If we didn't find any, perhaps the exit was combined.
+  if (Exits.empty() && Plan.getExitBlocks().size() == 1) {
----------------
sdesmalen-arm wrote:

This looks a bit fragile. Is it possible to have three conditions where and one of the uncounted exit conditions is merged with the counted exit condition, but the other uncounted exit condition is not?

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


More information about the llvm-commits mailing list