Skip to content

Commit 45a4842

Browse files
committed
Revert "Update try_question_mark_nop.rs test"
This reverts commit 80dfb58.
1 parent 80dfb58 commit 45a4842

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/codegen/try_question_mark_nop.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
//@ compile-flags: -O -Z merge-functions=disabled --edition=2021
22
//@ only-x86_64
3-
// FIXME: Remove the `min-llvm-version`.
4-
//@ min-llvm-version: 19
53

64
#![crate_type = "lib"]
75
#![feature(try_blocks)]
86

97
use std::ops::ControlFlow::{self, Break, Continue};
108
use std::ptr::NonNull;
119

12-
// FIXME: The `trunc` and `select` instructions can be eliminated.
1310
// CHECK-LABEL: @option_nop_match_32
1411
#[no_mangle]
1512
pub fn option_nop_match_32(x: Option<u32>) -> Option<u32> {
1613
// CHECK: start:
17-
// CHECK-NEXT: [[TRUNC:%.*]] = trunc nuw i32 %0 to i1
18-
// CHECK-NEXT: [[FIRST:%.*]] = select i1 [[TRUNC]], i32 %0
19-
// CHECK-NEXT: insertvalue { i32, i32 } poison, i32 [[FIRST]]
14+
// CHECK-NEXT: insertvalue { i32, i32 }
2015
// CHECK-NEXT: insertvalue { i32, i32 }
2116
// CHECK-NEXT: ret { i32, i32 }
2217
match x {

0 commit comments

Comments
 (0)