1 ; RUN: opt < %s -aa-pipeline=globals-aa -passes='require<globals-aa>,gvn' -S | FileCheck %s
3 @g = internal global i32 0 ; <ptr> [#uses=2]
6 %tmp = load i32, ptr @g ; <i32> [#uses=1]
11 ; CHECK: call i32 @e()
12 ; CHECK: call i32 @e()
14 %tmp = call i32 @e( ) ; <i32> [#uses=1]
15 store i32 %tmp, ptr @g
16 %tmp2 = call i32 @e( ) ; <i32> [#uses=1]
20 declare i32 @e() readonly ; might call @r