[llvm] [LV] Vectorize uncountable early exit store loops with combined conditions (PR #205109)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 08:05:04 PDT 2026
================
@@ -1649,6 +1650,69 @@ bool LoopVectorizationLegality::canVectorizeLoopNestCFG(
return Result;
}
+/// Matches an exit condition formed by comparing a value loaded from memory
+/// with another term. Binds the pointer, load, and the other comparison term.
+static bool matchUncountableExitCondition(Value *Cond, Value *&Ptr,
+ Instruction *&Load, Value *&Other) {
+ return match(Cond, m_OneUse(m_c_Cmp(
+ m_OneUse(m_Instruction(Load, m_Load(m_Value(Ptr)))),
+ m_Value(Other))));
+}
+
+/// Matches an exit condition formed by comparing the current value of a
----------------
fhahn wrote:
```suggestion
/// Matches an exit condition formed by comparing the current value of an
```
https://github.com/llvm/llvm-project/pull/205109
More information about the llvm-commits
mailing list