1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/Transforms/Inline/inline-tail.ll
2007-01-17 07:59:14 +00:00

17 lines
303 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | not grep tail
implementation
declare void %bar(int*)
internal void %foo(int* %P) { ;; to be inlined
tail call void %bar(int* %P)
ret void
}
void %caller() {
%A = alloca int
call void %foo(int* %A) ;; not a tail call
ret void
}