Home | History | Annotate | Download | only in GlobalOpt
      1 ; RUN: opt < %s -globalopt -S | not grep %G
      2 
      3 @G = internal global i32 0              ; <i32*> [#uses=1]
      4 @H = internal global { i32* } { i32* @G }               ; <{ i32* }*> [#uses=1]
      5 
      6 define i32 @loadg() {
      7         %G = load i32** getelementptr ({ i32* }* @H, i32 0, i32 0)              ; <i32*> [#uses=1]
      8         %GV = load i32* %G              ; <i32> [#uses=1]
      9         ret i32 %GV
     10 }
     11 
     12