brintos

brintos / llvm-project-archived public Read only

0
0
Text · 648 B · 1a87e87 Raw
27 lines · plain
1; RUN: opt < %s -S -passes=ipsccp | FileCheck %s2 3@_ZL6test1g = internal global i32 42, align 44 5define void @_Z7test1f1v() nounwind {6entry:7  %tmp = load i32, ptr @_ZL6test1g, align 48  %cmp = icmp eq i32 %tmp, 09  br i1 %cmp, label %if.then, label %if.end10 11if.then:                                          ; preds = %entry12  store i32 0, ptr @_ZL6test1g, align 413  br label %if.end14 15if.end:                                           ; preds = %if.then, %entry16  ret void17}18 19; CHECK: @_Z7test1f2v()20; CHECK: entry:21; CHECK-NEXT: ret i32 4222define i32 @_Z7test1f2v() nounwind {23entry:24  %tmp = load i32, ptr @_ZL6test1g, align 425  ret i32 %tmp26}27