[llvm] [LV] Add initial legality checks for ee loops with stores (PR #145663)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 18 03:26:39 PDT 2025
================
@@ -515,20 +523,87 @@ class LoopVectorizationLegality {
/// Returns true if this is an early exit loop that can be vectorized.
/// Currently, a loop with an uncountable early exit is considered
/// vectorizable if:
- /// 1. There are no writes to memory in the loop.
+ /// 1. Writes to memory do not form a dependence with any load used as
+ /// part of the uncounted exit condition.
----------------
fhahn wrote:
```suggestion
/// part of the uncountable exit condition.
```
https://github.com/llvm/llvm-project/pull/145663
More information about the llvm-commits
mailing list