2003-08-24 13:02:26 +08:00
|
|
|
; This checks to ensure that the inline pass deletes functions if they get
|
|
|
|
; inlined into all of their callers.
|
|
|
|
|
2003-09-16 23:29:54 +08:00
|
|
|
; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep %reallysmall
|
2003-08-24 13:02:26 +08:00
|
|
|
|
|
|
|
implementation
|
|
|
|
|
|
|
|
internal int %reallysmall(int %A) {
|
|
|
|
ret int %A
|
|
|
|
}
|
|
|
|
|
|
|
|
void %caller1() {
|
|
|
|
call int %reallysmall(int 5)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
void %caller2(int %A) {
|
|
|
|
call int %reallysmall(int %A)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
int %caller3(int %A) {
|
|
|
|
%B = call int %reallysmall(int %A)
|
|
|
|
ret int %B
|
|
|
|
}
|