1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/AArch64/tailcall-fastisel.ll
Akira Hatanaka 87c53cc314 [AArch64, fast-isel] Fall back to SelectionDAG to select tail calls.
Certain functions such as objc_autoreleaseReturnValue have to be called as
tail-calls even at -O0. Since normal fast-isel doesn't emit calls as tail calls,
we have to fall back to SelectionDAG to select calls that are marked as tail.

<rdar://problem/17991614>

llvm-svn: 215600
2014-08-13 23:23:58 +00:00

12 lines
181 B
LLVM

; RUN: llc < %s -mtriple=arm64-apple-darwin -O0 | FileCheck %s
; CHECK: b _foo0
define i32 @foo1() {
entry:
%call = tail call i32 @foo0()
ret i32 %call
}
declare i32 @foo0()