File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
1
//@ compile-flags: -O -Z merge-functions=disabled --edition=2021
2
2
//@ only-x86_64
3
- // FIXME: Remove the `min-llvm-version`.
4
- //@ min-llvm-version: 19
5
3
6
4
#![ crate_type = "lib" ]
7
5
#![ feature( try_blocks) ]
8
6
9
7
use std:: ops:: ControlFlow :: { self , Break , Continue } ;
10
8
use std:: ptr:: NonNull ;
11
9
12
- // FIXME: The `trunc` and `select` instructions can be eliminated.
13
10
// CHECK-LABEL: @option_nop_match_32
14
11
#[ no_mangle]
15
12
pub fn option_nop_match_32 ( x : Option < u32 > ) -> Option < u32 > {
16
13
// 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 }
20
15
// CHECK-NEXT: insertvalue { i32, i32 }
21
16
// CHECK-NEXT: ret { i32, i32 }
22
17
match x {
You can’t perform that action at this time.
0 commit comments