1 ; RUN: opt < %s -basicaa -globalsmodref-aa -gvn -S | FileCheck %s 2 3 @X = internal global i32 4 ; <i32*> [#uses=1] 4 5 define i32 @test(i32* %P) { 6 ; CHECK: @test 7 ; CHECK-NEXT: store i32 7, i32* %P 8 ; CHECK-NEXT: store i32 12, i32* @X 9 ; CHECK-NEXT: ret i32 7 10 store i32 7, i32* %P 11 store i32 12, i32* @X 12 %V = load i32* %P ; <i32> [#uses=1] 13 ret i32 %V 14 } 15