mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 12:16:59 +00:00
Unbreak tailcall opt.
llvm-svn: 43646
This commit is contained in:
parent
8d473f667d
commit
bf8e7c6644
@ -1466,7 +1466,7 @@ bool X86TargetLowering::IsEligibleForTailCallOptimization(SDOperand Call,
|
||||
if ((NumOps == 1 &&
|
||||
(Ret.getOperand(0) == SDOperand(Call.Val,1) ||
|
||||
Ret.getOperand(0) == SDOperand(Call.Val,0))) ||
|
||||
(NumOps == 2 &&
|
||||
(NumOps > 1 &&
|
||||
Ret.getOperand(0) == SDOperand(Call.Val,Call.Val->getNumValues()-1) &&
|
||||
Ret.getOperand(1) == SDOperand(Call.Val,0))) {
|
||||
MachineFunction &MF = DAG.getMachineFunction();
|
||||
|
Loading…
x
Reference in New Issue
Block a user