Skip to content

Commit 7c21342

Browse files
committed
CostModel: fixup cost of 'ret void' after rebase
1 parent d2181f5 commit 7c21342

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Analysis/CostModel/RISCV/fround.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ define void @lrint() {
202202
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call <vscale x 2 x i64> @llvm.lrint.nxv2i64.nxv2f64(<vscale x 2 x double> undef)
203203
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call <vscale x 4 x i64> @llvm.lrint.nxv4i64.nxv4f64(<vscale x 4 x double> undef)
204204
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call <vscale x 8 x i64> @llvm.lrint.nxv8i64.nxv8f64(<vscale x 8 x double> undef)
205-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void
205+
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
206206
;
207207
call i64 @llvm.lrint.i64.f32(float undef)
208208
call <2 x i64> @llvm.lrint.v2i64.v2f32(<2 x float> undef)
@@ -247,7 +247,7 @@ define void @llrint() {
247247
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %17 = call <vscale x 2 x i64> @llvm.llrint.nxv2i64.nxv2f64(<vscale x 2 x double> undef)
248248
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %18 = call <vscale x 4 x i64> @llvm.llrint.nxv4i64.nxv4f64(<vscale x 4 x double> undef)
249249
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %19 = call <vscale x 8 x i64> @llvm.llrint.nxv8i64.nxv8f64(<vscale x 8 x double> undef)
250-
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret void
250+
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret void
251251
;
252252
call i64 @llvm.llrint.i64.f32(float undef)
253253
call <2 x i64> @llvm.llrint.v2i64.v2f32(<2 x float> undef)

0 commit comments

Comments
 (0)