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
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
Transforms
/
DeadStoreElimination
/
free.ll
blob
8b81ee353033877fb7a74199b96318a3095f183c
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
}