1 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=gvn,instcombine -S | FileCheck %s
5 %A = alloca i32 ; <ptr> [#uses=3]
6 call void @foo( ptr %A )
7 %X = load i32, ptr %A ; <i32> [#uses=1]
9 %Y = load i32, ptr %A ; <i32> [#uses=1]
10 %Z = sub i32 %X, %Y ; <i32> [#uses=1]
14 declare void @foo(ptr)