Home | History | Annotate | Download | only in GlobalOpt
      1 ; RUN: opt < %s -globalopt -S | FileCheck %s
      2 ; RUN: opt < %s -passes=globalopt -S | FileCheck %s
      3 
      4 ; CHECK-NOT: global
      5 @X = internal global i32 4              ; <i32*> [#uses=1]
      6 
      7 define i32 @foo() {
      8         %V = load i32, i32* @X               ; <i32> [#uses=1]
      9         ret i32 %V
     10 }
     11