From 7822b1dcc466b7bdb089130464909a89ee259796 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 25 Jul 2004 07:57:50 +0000 Subject: [PATCH] New testcase for DSE llvm-svn: 15198 --- test/Regression/Transforms/DeadStoreElimination/free.llx | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Regression/Transforms/DeadStoreElimination/free.llx diff --git a/test/Regression/Transforms/DeadStoreElimination/free.llx b/test/Regression/Transforms/DeadStoreElimination/free.llx new file mode 100644 index 00000000000..afcb5cb6411 --- /dev/null +++ b/test/Regression/Transforms/DeadStoreElimination/free.llx @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD + +void %test(int* %Q, int* %P) { + %DEAD = load int* %Q + store int %DEAD, int* %P + free int* %P + ret void +}