[llvm] [VPlan] Compute scalar cost based on VPlan0 instead of legacy CM. (PR #196845)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 21 03:19:36 PDT 2026


================
@@ -127,11 +123,6 @@ while.end:
 }
 
 ; CHECK-COST-LABEL: umin
-; CHECK-COST: Found an estimated cost of 2 for VF 1 For instruction:   %1 = tail call i8 @llvm.umin.i8(i8 %0, i8 %offset)
-; CHECK-COST: Cost of 3 for VF 2: WIDEN-INTRINSIC ir<%1> = call llvm.umin(ir<%0>, ir<%offset>)
-; CHECK-COST: Cost of 3 for VF 4: WIDEN-INTRINSIC ir<%1> = call llvm.umin(ir<%0>, ir<%offset>)
-; CHECK-COST: Cost of 1 for VF 8: WIDEN-INTRINSIC ir<%1> = call llvm.umin(ir<%0>, ir<%offset>)
-; CHECK-COST: Cost of 1 for VF 16: WIDEN-INTRINSIC ir<%1> = call llvm.umin(ir<%0>, ir<%offset>)
----------------
fhahn wrote:

Yeah restored. Also a few other places dropped VF = 1 checks after latest rebase (mostly X86 cost model tests), should also be restored, thanks

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


More information about the llvm-commits mailing list