diff options
author | Chris Lattner <sabre@nondot.org> | 2004-07-26 06:11:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-07-26 06:11:42 +0000 |
commit | a00064a383d17e9fadc913f5372b372bcfafcfdc (patch) | |
tree | 22da6277097039b77bd815f972b7945c206868d9 /test | |
parent | 61d462760b6c684465f7353b87687e904145be88 (diff) | |
download | external_llvm-a00064a383d17e9fadc913f5372b372bcfafcfdc.zip external_llvm-a00064a383d17e9fadc913f5372b372bcfafcfdc.tar.gz external_llvm-a00064a383d17e9fadc913f5372b372bcfafcfdc.tar.bz2 |
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/DeadStoreElimination/alloca.llx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/DeadStoreElimination/alloca.llx b/test/Transforms/DeadStoreElimination/alloca.llx new file mode 100644 index 0000000..c75a618 --- /dev/null +++ b/test/Transforms/DeadStoreElimination/alloca.llx @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD + +void %test(int* %Q) { + %P = alloca int + %DEAD = load int* %Q + store int %DEAD, int* %P ;; Alloca goes out of scope, dead store. + ret void +} |