mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
87c53cc314
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
12 lines
181 B
LLVM
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()
|