[llvm-commits] CVS: llvm/test/Regression/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 9 08:29:38 PST 2005
Changes in directory llvm/test/Regression/Analysis/BasicAA:
2005-03-09-BrokenBasicAA.ll added (r1.1)
---
Log message:
new testcase for a -basicaa bug that Alkis found with Java.
---
Diffs of the changes: (+14 -0)
2005-03-09-BrokenBasicAA.ll | 14 ++++++++++++++
1 files changed, 14 insertions(+)
Index: llvm/test/Regression/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
diff -c /dev/null llvm/test/Regression/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll:1.1
*** /dev/null Wed Mar 9 10:29:32 2005
--- llvm/test/Regression/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll Wed Mar 9 10:29:22 2005
***************
*** 0 ****
--- 1,14 ----
+ ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'load int\* %A'
+
+ declare double* %useit(int*)
+
+ int %foo(uint %Amt) {
+ %A = malloc int, uint %Amt
+ %P = call double* %useit(int* %A)
+
+ %X = load int* %A
+ store double 0.0, double* %P
+ %Y = load int* %A
+ %Z = sub int %X, %Y
+ ret int %Z
+ }
More information about the llvm-commits
mailing list