llvm-6502/test/CodeGen/AArch64/tailcall-fastisel.ll
Akira Hatanaka d0ddfb0896 [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>



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215600 91177308-0d34-0410-b5e6-96231b3b80d8
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()