repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
another random update
[llvm/avr.git]
/
test
/
Transforms
/
DeadStoreElimination
/
free.ll
blob
2e2bcaea01ede96aeb7f93595894d60d7a6e75ef
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
}