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