Implement X86 code generation for musttail

Press ? to show keyboard shortcuts.
Committed
rnkApr 29 2014, 4:55 PM
Differential Revision
D3493: Implement X86 code generation for musttail
Parents
rL207597: Fix the build with MSVC 2013 by explicitly requesting llvm::make_unique
Branches
Unknown
Tags
Unknown
Description

Implement X86 code generation for musttail

Currently, musttail codegen is relying on sibcall optimization, and
reporting a fatal error if fails. Sibcall optimization fails when stack
arguments need to be modified, which is insufficient for musttail.

The logic for moving arguments in memory safely is already implemented
for GuaranteedTailCallOpt. This change merely arranges for musttail
calls to use it.

No functional change for GuaranteedTailCallOpt.

Reviewers: espindola

Differential Revision: http://reviews.llvm.org/D3493

rL207598

llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Loading...

llvm/trunk/test/CodeGen/X86/musttail-indirect.ll

Loading...

llvm/trunk/test/CodeGen/X86/musttail-thiscall.ll

Loading...

llvm/trunk/test/CodeGen/X86/musttail.ll

Loading...

Add Comment