Perform trivial tail call optimization for callees with "C" ABI. These are done
authorEvan Cheng <evan.cheng@apple.com>
Wed, 27 Jan 2010 06:25:16 +0000 (06:25 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 27 Jan 2010 06:25:16 +0000 (06:25 +0000)
commitb17124553d569c6f09347f2cbe072eab445d30c4
tree39c5762a493512780ffb1359bcb9211b457b609e
parent0a65a1441731c5fcf08647e95c9802844da68514
Perform trivial tail call optimization for callees with "C" ABI. These are done
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
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
test/CodeGen/X86/pic.ll
test/CodeGen/X86/tailcall1.ll
test/CodeGen/X86/tailcall2.ll [new file with mode: 0644]