[llvm] [LV] Bundle partial reductions inside VPExpressionRecipe (PR #147302)

Gaƫtan Bossu via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 20 01:04:27 PDT 2025


================
@@ -86,7 +86,7 @@ define i64 @test_two_ivs(ptr %a, ptr %b, i64 %start) #0 {
 ; CHECK-NEXT: Cost of 0 for VF 16: induction instruction   %i.iv = phi i64 [ 0, %entry ], [ %i.iv.next, %for.body ]
 ; CHECK-NEXT: Cost of 0 for VF 16: induction instruction   %j.iv = phi i64 [ %start, %entry ], [ %j.iv.next, %for.body ]
 ; CHECK-NEXT: Cost of 0 for VF 16: EMIT vp<{{.+}}> = CANONICAL-INDUCTION ir<0>, vp<%index.next>
-; CHECK: Cost for VF 16: 41
+; CHECK: Cost for VF 16: 3
----------------
gbossu wrote:

Nit: Would be nice to see which instruction/recipe helped reduce that cost in a CHECK line.

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


More information about the llvm-commits mailing list