Revert commit 131781, to see if it fixes the x86-64 dragonegg buildbot.
[oota-llvm.git] / test / Analysis / BasicAA / 2005-03-09-BrokenBasicAA.ll
1 ; RUN: opt < %s -basicaa -gvn -instcombine |\
2 ; RUN: llvm-dis | grep {load i32\\* %A}
3
4 declare double* @useit(i32*)
5
6 define i32 @foo(i32 %Amt) {
7         %A = malloc i32, i32 %Amt
8         %P = call double*  @useit(i32* %A)
9
10         %X = load i32* %A
11         store double 0.0, double* %P
12         %Y = load i32* %A
13         %Z = sub i32 %X, %Y
14         ret i32 %Z
15 }