New testcase. DSE should delete all of the DEAD instructions.

llvm-svn: 15253
This commit is contained in:
Chris Lattner 2004-07-27 02:19:27 +00:00
parent aa05a6e5a1
commit 0a0fc220cc
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
; RUN: llvm-as < %s | opt -dse | llvm-dis | not grep DEAD
declare void %ext()
int* %caller() {
%P = malloc int
%DEAD = load int* %P
%DEAD2 = add int %DEAD, 1
store int %DEAD2, int* %P ;; dead store
call void %ext() ; Can not clobber *P
store int 0, int* %P
ret int* %P
}