projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix PR5978 by peeling the loop so that we avoid shifting the
[oota-llvm.git]
/
test
/
Transforms
/
DeadStoreElimination
/
free.ll
1
; RUN: opt < %s -dse -S | not grep DEAD
2
3
define void @test(i32* %Q, i32* %P) {
4
%DEAD = load i32* %Q ; <i32> [#uses=1]
5
store i32 %DEAD, i32* %P
6
free i32* %P
7
ret void
8
}
9
10
define void @test2({i32, i32}* %P) {
11
%Q = getelementptr {i32, i32} *%P, i32 0, i32 1
12
store i32 4, i32* %Q
13
free {i32,i32}* %P
14
ret void
15
}