mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
17 lines
288 B
LLVM
17 lines
288 B
LLVM
|
; RUN: llvm-as < %s | 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
|
||
|
}
|