projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
202f2ea
)
New testcase
author
Chris Lattner
<sabre@nondot.org>
Sat, 28 Jun 2003 23:52:34 +0000
(23:52 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 28 Jun 2003 23:52:34 +0000
(23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6969
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Analysis/DSGraph/mustalias.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/Analysis/DSGraph/mustalias.ll
b/test/Analysis/DSGraph/mustalias.ll
new file mode 100644
(file)
index 0000000..
349377c
--- /dev/null
+++ b/
test/Analysis/DSGraph/mustalias.ll
@@ -0,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
+}
+