[llvm] [VPlan] Remove isVector guard in getCostForRecipeWithOpcode. (PR #188126)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 24 02:51:19 PDT 2026


================
@@ -6,14 +6,14 @@ target triple = "arm64-apple-macosx"
 define void @udiv_rhs_opt_cost(ptr %dst) #0 {
 ; CHECK-LABEL: 'udiv_rhs_opt_cost'
 ; CHECK:  LV: Found an estimated cost of 5 for VF 1 For instruction: %div = udiv i8 %iv.trunc, 3
-; CHECK:  Cost of 1 for VF 2: CLONE ir<%div> = udiv vp<[[VP7:%[0-9]+]]>, ir<3>
+; CHECK:  Cost of 5 for VF 2: CLONE ir<%div> = udiv vp<[[VP7:%[0-9]+]]>, ir<3>
----------------
fhahn wrote:

Yep agreed this seems like a cost model issue on AArch64 really, as with more info the cost should be lower. 

Both the issue in this PR and the AArch64 cost model issue seem to be actual problems uncovered by the assert :) 

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


More information about the llvm-commits mailing list