llvm-project/llvm/test/CodeGen/X86/fast-isel-disable-tail-calls.ll
Arthur Eubanks d6cc7a5b46 [FastISel] Respect musttail over "disable-tail-calls"
musttail should be honored even in the presence of attributes like "disable-tail-calls". SelectionDAG properly handles this.

Update LangRef to explicitly mention that this is the semantics of musttail.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D132193
2022-08-23 08:55:40 -07:00

10 lines
219 B
LLVM

; RUN: llc -O0 -fast-isel -mtriple=x86_64-unknown-unknown < %s | FileCheck %s
; CHECK-NOT: retq
; CHECK: jmpq
define void @f(ptr %this) "disable-tail-calls"="true" {
musttail call void %this(ptr %this)
ret void
}