[llvm-commits] CVS: llvm/test/Regression/Analysis/DSGraph/mustalias.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Jun 28 18:53:01 PDT 2003
Changes in directory llvm/test/Regression/Analysis/DSGraph:
mustalias.ll added (r1.1)
---
Log message:
New testcase
---
Diffs of the changes:
Index: llvm/test/Regression/Analysis/DSGraph/mustalias.ll
diff -c /dev/null llvm/test/Regression/Analysis/DSGraph/mustalias.ll:1.1
*** /dev/null Sat Jun 28 18:52:45 2003
--- llvm/test/Regression/Analysis/DSGraph/mustalias.ll Sat Jun 28 18:52:34 2003
***************
*** 0 ****
--- 1,17 ----
+ ; Test that ds-aa is returning must-alias information when it can.
+
+ ; RUN: as < %s | opt -no-aa -ds-aa -load-vn -gcse | dis | not grep load
+
+ %X = global int 20
+
+ implementation
+
+ int* %id(int* %P) { ret int* %P }
+
+ int %main() {
+ store int 0, int* %X
+ %XP = call int* %id(int* %X)
+ %A = load int* %XP ; Should eliminate load!
+ ret int %A
+ }
+
More information about the llvm-commits
mailing list