[llvm] [LV] Vectorize early exit loops with multiple exits. (PR #174864)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 09:14:19 PST 2026


================
@@ -810,9 +810,13 @@ m_LogicalAnd(const Op0_t &Op0, const Op1_t &Op1) {
 }
 
 template <typename Op0_t, typename Op1_t>
-inline AllRecipe_match<Instruction::Select, Op0_t, specific_intval<1>, Op1_t>
+inline match_combine_or<
+    VPInstruction_match<VPInstruction::LogicalOr, Op0_t, Op1_t>,
+    AllRecipe_match<Instruction::Select, Op0_t, specific_intval<1>, Op1_t>>
----------------
fhahn wrote:

Sounds good to me, updated thanks

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


More information about the llvm-commits mailing list