Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / GlobalOpt / 2006-11-01-ShrinkGlobalPhiCrash.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -globalopt -disable-output
2         %struct._list = type { int*, %struct._list* }
3         %struct._play = type { int, int*, %struct._list*, %struct._play* }
4 %nrow = internal global int 0           ; <int*> [#uses=2]
5
6 implementation   ; Functions:
7
8 void %make_play() {
9 entry:
10         br label %cond_true16.i
11
12 cond_true16.i:          ; preds = %cond_true16.i, %entry
13         %low.0.in.i.0 = phi int* [ %nrow, %entry ], [ null, %cond_true16.i ]            ; <int*> [#uses=1]
14         %low.0.i = load int* %low.0.in.i.0              ; <int> [#uses=0]
15         br label %cond_true16.i
16 }
17
18 void %make_wanted() {
19 entry:
20         unreachable
21 }
22
23 void %get_good_move() {
24 entry:
25         ret void
26 }
27
28 void %main() {
29 entry:
30         store int 8, int* %nrow
31         tail call void %make_play( )
32         ret void
33 }