1 ; RUN: opt < %s -S -passes=ipsccp | FileCheck %s
3 @_ZL6test1g = internal global i32 42, align 4
5 define void @_Z7test1f1v() nounwind {
7 %tmp = load i32, ptr @_ZL6test1g, align 4
8 %cmp = icmp eq i32 %tmp, 0
9 br i1 %cmp, label %if.then, label %if.end
11 if.then: ; preds = %entry
12 store i32 0, ptr @_ZL6test1g, align 4
15 if.end: ; preds = %if.then, %entry
19 ; CHECK: @_Z7test1f2v()
21 ; CHECK-NEXT: ret i32 42
22 define i32 @_Z7test1f2v() nounwind {
24 %tmp = load i32, ptr @_ZL6test1g, align 4