From a00064a383d17e9fadc913f5372b372bcfafcfdc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Jul 2004 06:11:42 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15231 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/DeadStoreElimination/alloca.llx | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Transforms/DeadStoreElimination/alloca.llx diff --git a/test/Transforms/DeadStoreElimination/alloca.llx b/test/Transforms/DeadStoreElimination/alloca.llx new file mode 100644 index 00000000000..c75a618d3d4 --- /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 +} -- 2.34.1