[llvm-commits] CVS: llvm/test/Regression/Analysis/BasicAA/tailcall-modref.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun May 8 16:57:47 PDT 2005
Changes in directory llvm/test/Regression/Analysis/BasicAA:
tailcall-modref.ll added (r1.1)
---
Log message:
New testacse for information exposed by the 'tail' call marker.
---
Diffs of the changes: (+16 -0)
tailcall-modref.ll | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm/test/Regression/Analysis/BasicAA/tailcall-modref.ll
diff -c /dev/null llvm/test/Regression/Analysis/BasicAA/tailcall-modref.ll:1.1
*** /dev/null Sun May 8 18:57:44 2005
--- llvm/test/Regression/Analysis/BasicAA/tailcall-modref.ll Sun May 8 18:57:34 2005
***************
*** 0 ****
--- 1,16 ----
+ ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'ret int 0'
+ declare void %foo(int*)
+ declare void %bar()
+
+ int %test() {
+ %A = alloca int
+ call void %foo(int* %A)
+
+ %X = load int* %A
+ tail call void %bar() ;; Cannot modify *%A because it's on the stack.
+ %Y = load int* %A
+ %Z = sub int %X, %Y
+ ret int %Z
+ }
+
+
More information about the llvm-commits
mailing list