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
several major improvements to the sparc backend: support for weak linkage
[llvm/avr.git]
/
test
/
Transforms
/
RaiseAllocations
/
2007-10-17-InvokeFree.ll
blob
675bb3d829f777bafb31e5c353ae3c234cd18636
1
; RUN: opt < %s -raiseallocs -stats -disable-output |& \
2
; RUN: not grep {Number of allocations raised}
3
define void @foo() {
4
entry:
5
%buffer = alloca i16*
6
%tmp = load i16** %buffer, align 8
7
invoke i32(...)* @free(i16* %tmp)
8
to label %invcont unwind label %unwind
9
invcont:
10
br label %finally
11
unwind:
12
br label %finally
13
finally:
14
ret void
15
}
16
declare i32 @free(...)
17