2007-01-02 05:55:05 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
2007-04-16 17:36:08 +00:00
|
|
|
; RUN: grep {%X.1.lcssa}
|
2007-01-02 05:55:05 +00:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | \
|
2007-04-16 17:36:08 +00:00
|
|
|
; RUN: not grep {%X.1.lcssa1}
|
2006-06-12 07:05:47 +00:00
|
|
|
|
|
|
|
declare bool %c1()
|
|
|
|
declare bool %c2()
|
|
|
|
|
|
|
|
int %foo() {
|
|
|
|
entry:
|
|
|
|
br label %loop_begin
|
|
|
|
|
|
|
|
loop_begin:
|
|
|
|
br bool true, label %loop_body.1, label %loop_exit2
|
|
|
|
|
|
|
|
loop_body.1:
|
|
|
|
%X.1 = add int 0, 1
|
|
|
|
%rel.1 = call bool %c1()
|
|
|
|
br bool %rel.1, label %loop_exit, label %loop_body.2
|
|
|
|
|
|
|
|
loop_body.2:
|
|
|
|
%rel.2 = call bool %c2()
|
|
|
|
br bool %rel.2, label %loop_exit, label %loop_begin
|
|
|
|
|
|
|
|
loop_exit:
|
|
|
|
ret int %X.1
|
|
|
|
|
|
|
|
loop_exit2:
|
|
|
|
ret int 1
|
|
|
|
}
|