[llvm] [LV] Vectorize uncountable early exit store loops with combined conditions (PR #205109)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 24 06:14:32 PDT 2026
================
@@ -3005,6 +3005,119 @@ void VPlanTransforms::createInterleaveGroups(
}
}
+/// Matches an exit condition formed by comparing a value loaded from memory
+/// with a loop-invariant term. Binds the comparison for the condition.
+static auto m_Uncountable(VPValue *&Cond) {
+ return m_VPValue(
+ Cond,
+ m_c_Cmp(m_VPInstruction<Instruction::Load>(m_VPValue()), m_LiveIn()));
+}
+
+struct CountableConditionMatch {
----------------
fhahn wrote:
can this go into anonoymous namespace?
https://github.com/llvm/llvm-project/pull/205109
More information about the llvm-commits
mailing list