mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-13 06:25:02 +00:00
b17124553d
even when -tailcallopt is not specified and it does not require changing ABI. First case is the most trivial one. Perform tail call optimization when both the caller and callee do not return values and when the callee does not take any input arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94664 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
275 B
LLVM
13 lines
275 B
LLVM
; RUN: llc < %s -march=x86 -asm-verbose=false | FileCheck %s
|
|
; RUN: llc < %s -march=x86-64 -asm-verbose=false | FileCheck %s
|
|
|
|
define void @bar(i32 %x) nounwind ssp {
|
|
entry:
|
|
; CHECK: bar:
|
|
; CHECK: jmp _foo
|
|
tail call void @foo() nounwind
|
|
ret void
|
|
}
|
|
|
|
declare void @foo()
|