[PATCH] D14024: [X86] Clean up the tail call eligibility logic

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 11:39:46 PDT 2015


rnk created this revision.
rnk added a reviewer: hans.
rnk added a subscriber: llvm-commits.

The logic here isn't straightforward because our support for
TargetOptions::GuaranteedTailCallOpt.

Also fix a bug where we were allowing tail calls to cdecl functions from
fastcall and vectorcall functions. We were special casing thiscall and
stdcall callers rather than checking for any convention that requires
clearing stack arguments before returning.

http://reviews.llvm.org/D14024

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/tailcall-msvc-conventions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14024.38245.patch
Type: text/x-patch
Size: 9723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151023/f09a8367/attachment.bin>


More information about the llvm-commits mailing list