1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

More thoroughly disable tails calls by default.

8060143, although this doesn't fix the real problem with tail call.

llvm-svn: 105472
This commit is contained in:
Dale Johannesen 2010-06-04 18:04:24 +00:00
parent ab666c3d62
commit f47a852290

View File

@ -999,14 +999,14 @@ 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,
isVarArg, IsStructRet, MF.getFunction()->hasStructRetAttr(), isVarArg, IsStructRet, MF.getFunction()->hasStructRetAttr(),
Outs, Ins, DAG); Outs, Ins, DAG);
// Temporarily disable tail calls so things don't break.
if (!EnableARMTailCalls)
isTailCall = false;
// We don't support GuaranteedTailCallOpt for ARM, only automatically // We don't support GuaranteedTailCallOpt for ARM, only automatically
// detected sibcalls. // detected sibcalls.
if (isTailCall) { if (isTailCall) {