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:
parent
ab666c3d62
commit
f47a852290
@ -999,14 +999,14 @@ ARMTargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
||||
MachineFunction &MF = DAG.getMachineFunction();
|
||||
bool IsStructRet = (Outs.empty()) ? false : Outs[0].Flags.isSRet();
|
||||
bool IsSibCall = false;
|
||||
// Temporarily disable tail calls so things don't break.
|
||||
if (!EnableARMTailCalls)
|
||||
isTailCall = false;
|
||||
if (isTailCall) {
|
||||
// Check if it's really possible to do a tail call.
|
||||
isTailCall = IsEligibleForTailCallOptimization(Callee, CallConv,
|
||||
isVarArg, IsStructRet, MF.getFunction()->hasStructRetAttr(),
|
||||
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
|
||||
// detected sibcalls.
|
||||
if (isTailCall) {
|
||||
|
Loading…
Reference in New Issue
Block a user