mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
d0ddfb0896
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
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()
|