[llvm] [Support] Always scale InstructionCost::Value (PR #178962)
Ryan Buchner via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 9 10:19:31 PDT 2026
================
@@ -57,7 +57,7 @@ define void @if_convert(ptr %a, ptr %b, i32 %start, i32 %end) #0 {
; CHECK-COST-2-NEXT: LV: Found an estimated cost of 1 for VF 1 For instruction: %inc = add nsw i32 %i.032, 1
; CHECK-COST-2-NEXT: LV: Found an estimated cost of 1 for VF 1 For instruction: %exitcond.not = icmp eq i32 %inc, %end
; CHECK-COST-2-NEXT: LV: Found an estimated cost of 0 for VF 1 For instruction: br i1 %exitcond.not, label %for.cond.cleanup.loopexit, label %for.body
-; CHECK-COST-2-NEXT: LV: Scalar loop costs: 8.
+; CHECK-COST-2-NEXT: LV: Scalar loop costs: 34/4.
----------------
bababuck wrote:
Good suggestion, will add. Thanks!
https://github.com/llvm/llvm-project/pull/178962
More information about the llvm-commits
mailing list