llvm.org GIT mirror llvm / d0069a0
Add a new testcase which breaks the sinker because the loop canonnicalization pass does not do a canonnicalization that the sinker wants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10346 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 15 years ago
1 changed file(s) with 19 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; This testcase checks to make sure the sinker does not cause problems with
1 ; critical edges.
2
3 ; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C1 add | grep Exit
4
5 implementation ; Functions:
6
7 void %test() {
8 Entry:
9 br bool false, label %Loop, label %Exit
10
11 Loop:
12 %X = add int 0, 1
13 br bool false, label %Loop, label %Exit
14
15 Exit:
16 %Y = phi int [ 0, %Entry ], [ %X, %Loop ]
17 ret void
18 }