mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Remove switch for disabling ARM tail calls. They
seem to be working correctly. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5c1d941f00
commit
a54db0c485
@ -51,12 +51,6 @@ using namespace llvm;
|
|||||||
|
|
||||||
STATISTIC(NumTailCalls, "Number of tail calls");
|
STATISTIC(NumTailCalls, "Number of tail calls");
|
||||||
|
|
||||||
// This option should go away when tail calls fully work.
|
|
||||||
static cl::opt<bool>
|
|
||||||
EnableARMTailCalls("arm-tail-calls", cl::Hidden,
|
|
||||||
cl::desc("Generate tail calls (TEMPORARY OPTION)."),
|
|
||||||
cl::init(true));
|
|
||||||
|
|
||||||
// This option should go away when Machine LICM is smart enough to hoist a
|
// This option should go away when Machine LICM is smart enough to hoist a
|
||||||
// reg-to-reg VDUP.
|
// reg-to-reg VDUP.
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
@ -1123,9 +1117,6 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
|||||||
MachineFunction &MF = DAG.getMachineFunction();
|
MachineFunction &MF = DAG.getMachineFunction();
|
||||||
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
|
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
|
||||||
bool IsSibCall = false;
|
bool IsSibCall = false;
|
||||||
// Temporarily disable tail calls so things don't break.
|
|
||||||
if (!EnableARMTailCalls)
|
|
||||||
isTailCall = false;
|
|
||||||
if (isTailCall) {
|
if (isTailCall) {
|
||||||
// Check if it's really possible to do a tail call.
|
// Check if it's really possible to do a tail call.
|
||||||
isTailCall = IsEligibleForTailCallOptimization(Callee, CallConv,
|
isTailCall = IsEligibleForTailCallOptimization(Callee, CallConv,
|
||||||
|
Loading…
Reference in New Issue
Block a user