Skip to content

Commit 99146bb

Browse files
committed
New testcase that LICM is breaking crafty on
llvm-svn: 10408
1 parent 62aff84 commit 99146bb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
; RUN: llvm-as < %s | opt -licm | lli
2+
3+
implementation ; Functions:
4+
5+
int %main() {
6+
entry:
7+
br label %Loop
8+
9+
Loop:
10+
br bool true, label %LoopCont, label %Out
11+
LoopCont:
12+
%X = add int 1, 0
13+
br bool true, label %Out, label %Loop
14+
15+
Out:
16+
%V = phi int [ 2, %Loop], [ %X, %LoopCont]
17+
%V2 = sub int %V, 1
18+
ret int %V2
19+
}
20+

0 commit comments

Comments
 (0)