projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Forgot to update these files for the FastDSE changes.
[oota-llvm.git]
/
test
/
Transforms
/
DeadStoreElimination
/
context-sensitive.llx
1
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | not grep DEAD
2
3
declare void %ext()
4
5
int* %caller() {
6
%P = malloc int
7
%DEAD = load int* %P
8
%DEAD2 = add int %DEAD, 1
9
store int %DEAD2, int* %P ;; dead store
10
11
call void %ext() ; Can not clobber *P
12
13
store int 0, int* %P
14
ret int* %P
15
}