1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/Transforms/Inline/inline_dce.ll
Reid Spencer d1d4897d3f For PR1319:
Upgrade to use new Tcl exec based test harness.

llvm-svn: 36062
2007-04-15 08:30:33 +00:00

27 lines
479 B
LLVM

; This checks to ensure that the inline pass deletes functions if they get
; inlined into all of their callers.
; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | \
; RUN: not grep %reallysmall
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
}