new testcase for PR1435
[oota-llvm.git] / test / Transforms / LICM / sink_critical_edge.ll
1 ; This testcase checks to make sure the sinker does not cause problems with
2 ; critical edges.
3
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -licm | llvm-dis | %prcontext add 1 | grep Exit
5
6 implementation   ; Functions:
7
8 void %test() {
9 Entry:
10         br bool false, label %Loop, label %Exit
11
12 Loop:
13         %X = add int 0, 1
14         br bool false, label %Loop, label %Exit
15
16 Exit:
17         %Y = phi int [ 0, %Entry ], [ %X, %Loop ]
18         ret void
19 }