llvm/test/Transforms/Inline/inline-tail.ll
2006-12-02 04:23:10 +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
}