Home | History | Annotate | Download | only in GlobalOpt
      1 ; RUN: opt < %s -globalopt
      2 
      3 @V = global float 1.200000e+01          ; <float*> [#uses=1]
      4 @G = internal global i32* null          ; <i32**> [#uses=2]
      5 
      6 define i32 @user() {
      7         %P = load i32** @G              ; <i32*> [#uses=1]
      8         %Q = load i32* %P               ; <i32> [#uses=1]
      9         ret i32 %Q
     10 }
     11 
     12 define void @setter() {
     13         %Vi = bitcast float* @V to i32*         ; <i32*> [#uses=1]
     14         store i32* %Vi, i32** @G
     15         ret void
     16 }
     17 
     18