[PATCH] Implement X86 code generation for musttail
    Reid Kleckner 
    rnk at google.com
       
    Thu Apr 24 15:29:04 PDT 2014
    
    
  
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.
http://reviews.llvm.org/D3493
Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/musttail-indirect.ll
  test/CodeGen/X86/musttail-thiscall.ll
  test/CodeGen/X86/musttail.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3493.8819.patch
Type: text/x-patch
Size: 14943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140424/5dd1ee46/attachment.bin>
    
    
More information about the llvm-commits
mailing list