1 ; RUN: opt < %s -S -ipsccp | FileCheck %s
4 ; IPSCCP should propagate the 0 argument, eliminate the switch, and propagate
7 ; CHECK: define i32 @main() noreturn nounwind {
9 ; CHECK-NEXT: %call2 = tail call i32 @wwrite(i64 0) nounwind
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 readnone {
20 switch i64 %i, label %sw.default [