Home | History | Annotate | Download | only in GlobalOpt
      1 ; RUN: opt < %s -globalopt -disable-output
      2 
      3         %struct._list = type { i32*, %struct._list* }
      4         %struct._play = type { i32, i32*, %struct._list*, %struct._play* }
      5 @nrow = internal global i32 0           ; <i32*> [#uses=2]
      6 
      7 define void @make_play() {
      8 entry:
      9         br label %cond_true16.i
     10 
     11 cond_true16.i:          ; preds = %cond_true16.i, %entry
     12         %low.0.in.i.0 = phi i32* [ @nrow, %entry ], [ null, %cond_true16.i ]            ; <i32*> [#uses=1]
     13         %low.0.i = load i32, i32* %low.0.in.i.0              ; <i32> [#uses=0]
     14         br label %cond_true16.i
     15 }
     16 
     17 define void @make_wanted() {
     18 entry:
     19         unreachable
     20 }
     21 
     22 define void @get_good_move() {
     23 entry:
     24         ret void
     25 }
     26 
     27 define void @main() {
     28 entry:
     29         store i32 8, i32* @nrow
     30         tail call void @make_play( )
     31         ret void
     32 }
     33 
     34