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