1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -adce -S < %s | FileCheck %s
4 declare void @may_not_return(i32) nounwind readnone
5 declare void @will_return(i32) nounwind readnone willreturn
7 define void @test(i32 %a) {
9 ; CHECK-NEXT: [[B:%.*]] = add i32 [[A:%.*]], 1
10 ; CHECK-NEXT: call void @may_not_return(i32 [[B]])
11 ; CHECK-NEXT: ret void
14 call void @may_not_return(i32 %b)
16 call void @will_return(i32 %c)