1 ; RUN: opt < %s -S -passes=ipsccp | FileCheck %s
4 ; IPSCCP should propagate the 0 argument, eliminate the switch, and propagate
7 ; CHECK: define i32 @main() #0 {
9 ; CHECK-NEXT: %call2 = tail call i32 @wwrite(i64 0) [[NUW:#[0-9]+]]
10 ; CHECK-NEXT: ret i32 123
12 define i32 @main() noreturn nounwind {
14 %call2 = tail call i32 @wwrite(i64 0) nounwind
18 define internal i32 @wwrite(i64 %i) nounwind {
20 switch i64 %i, label %sw.default [