File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2
+ ; RUN: opt -adce -S < %s | FileCheck %s
3
+
4
+ declare void @may_not_return (i32 ) nounwind readnone
5
+ declare void @will_return (i32 ) nounwind readnone willreturn
6
+
7
+ ; FIXME: This is a miscompile.
8
+ define void @test (i32 %a ) {
9
+ ; CHECK-LABEL: @test(
10
+ ; CHECK-NEXT: ret void
11
+ ;
12
+ %b = add i32 %a , 1
13
+ call void @may_not_return (i32 %b )
14
+ %c = add i32 %b , 1
15
+ call void @will_return (i32 %c )
16
+ ret void
17
+ }
Original file line number Diff line number Diff line change
1
+ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2
+ ; RUN: opt -bdce -S < %s | FileCheck %s
3
+
4
+ declare void @may_not_return (i32 ) nounwind readnone
5
+ declare void @will_return (i32 ) nounwind readnone willreturn
6
+
7
+ ; FIXME: This is a miscompile.
8
+ define void @test (i32 %a ) {
9
+ ; CHECK-LABEL: @test(
10
+ ; CHECK-NEXT: ret void
11
+ ;
12
+ %b = add i32 %a , 1
13
+ call void @may_not_return (i32 %b )
14
+ %c = add i32 %b , 1
15
+ call void @will_return (i32 %c )
16
+ ret void
17
+ }
You can’t perform that action at this time.
0 commit comments