[llvm-commits] CVS: llvm/test/Regression/Transforms/BasicAA/2003-09-19-LocalArgument.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Sep 19 22:09:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/BasicAA:
2003-09-19-LocalArgument.ll added (r1.1)
---
Log message:
New testcase that basicaa should be able to handle
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/BasicAA/2003-09-19-LocalArgument.ll
diff -c /dev/null llvm/test/Regression/Transforms/BasicAA/2003-09-19-LocalArgument.ll:1.1
*** /dev/null Fri Sep 19 22:08:31 2003
--- llvm/test/Regression/Transforms/BasicAA/2003-09-19-LocalArgument.ll Fri Sep 19 22:08:21 2003
***************
*** 0 ****
--- 1,12 ----
+ ; In this test, a local alloca cannot alias an incoming argument.
+
+ ; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | not grep sub
+
+ int %test(int* %P) {
+ %X = alloca int
+ %V1 = load int* %P
+ store int 0, int* %X
+ %V2 = load int* %P
+ %Diff = sub int %V1, %V2
+ ret int %Diff
+ }
More information about the llvm-commits
mailing list