diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-11 16:47:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-11 16:47:15 +0000 |
commit | ffdc4ff1c45d0426c549550c477b578c0ffe4751 (patch) | |
tree | 6a6c249fcc920349cf565c0810f12ca343ca18f5 /test/Analysis/LoadVN | |
parent | 65585aa3fcb6c70ab36fb8965ac864378f5e3d44 (diff) | |
download | external_llvm-ffdc4ff1c45d0426c549550c477b578c0ffe4751.zip external_llvm-ffdc4ff1c45d0426c549550c477b578c0ffe4751.tar.gz external_llvm-ffdc4ff1c45d0426c549550c477b578c0ffe4751.tar.bz2 |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/LoadVN')
-rw-r--r-- | test/Analysis/LoadVN/dependent_loads.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/LoadVN/dependent_loads.ll b/test/Analysis/LoadVN/dependent_loads.ll new file mode 100644 index 0000000..97c6e95 --- /dev/null +++ b/test/Analysis/LoadVN/dependent_loads.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep sub + +sbyte %test(sbyte** %P) { + %A = load sbyte** %P + %B = load sbyte* %A + + %X = load sbyte** %P + %Y = load sbyte* %X + + %R = sub sbyte %B, %Y + ret sbyte %R +} |