summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/Analysis/DSGraph/mustalias.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-28 23:52:34 +0000
committerChris Lattner <sabre@nondot.org>2003-06-28 23:52:34 +0000
commit7739abc07b5fc860c7cb31b89c14349fbd82ceb0 (patch)
tree81567deda1d02bc7a73df75332aba6c4779b7cd6 /llvm/test/Regression/Analysis/DSGraph/mustalias.ll
parente9505ee0f97ae9253090d7eaccbd934916be836c (diff)
downloadbcm5719-llvm-7739abc07b5fc860c7cb31b89c14349fbd82ceb0.tar.gz
bcm5719-llvm-7739abc07b5fc860c7cb31b89c14349fbd82ceb0.zip
New testcase
llvm-svn: 6969
Diffstat (limited to 'llvm/test/Regression/Analysis/DSGraph/mustalias.ll')
-rw-r--r--llvm/test/Regression/Analysis/DSGraph/mustalias.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Regression/Analysis/DSGraph/mustalias.ll b/llvm/test/Regression/Analysis/DSGraph/mustalias.ll
new file mode 100644
index 00000000000..349377cd3d8
--- /dev/null
+++ b/llvm/test/Regression/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
+}
+
OpenPOWER on IntegriCloud