File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 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
97use std:: ops:: ControlFlow :: { self , Break , Continue } ;
108use std:: ptr:: NonNull ;
119
12- // FIXME: The `trunc` and `select` instructions can be eliminated.
1310// CHECK-LABEL: @option_nop_match_32
1411#[ no_mangle]
1512pub 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 {
You can’t perform that action at this time.
0 commit comments