projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
testcase for the recent inliner improvement.
[oota-llvm.git]
/
test
/
Transforms
/
Inline
/
2003-09-14-InlineValue.ll
1
; RUN: llvm-as < %s | opt -inline -disable-output
2
3
declare int %External()
4
5
implementation
6
7
internal int %Callee() {
8
%I = call int %External()
9
%J = add int %I, %I
10
ret int %J
11
}
12
13
int %Caller() {
14
%V = invoke int %Callee() to label %Ok except label %Bad
15
Ok:
16
ret int %V
17
Bad:
18
ret int 0
19
}
20