diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-06-28 23:52:34 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-06-28 23:52:34 +0000 |
| commit | 7739abc07b5fc860c7cb31b89c14349fbd82ceb0 (patch) | |
| tree | 81567deda1d02bc7a73df75332aba6c4779b7cd6 /llvm/test/Regression/Analysis/DSGraph/mustalias.ll | |
| parent | e9505ee0f97ae9253090d7eaccbd934916be836c (diff) | |
| download | bcm5719-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.ll | 17 |
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 +} + |

