projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
deb36bd
)
Unbreak tailcall opt.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 2 Nov 2007 17:45:40 +0000
(17:45 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 2 Nov 2007 17:45:40 +0000
(17:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43646
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86ISelLowering.cpp
b/lib/Target/X86/X86ISelLowering.cpp
index 7bd01b09cce8ae6ea89f1bafa4526ed1b4d03a16..dc9cf99fde6438863140effccc5fa1d606a556af 100644
(file)
--- a/
lib/Target/X86/X86ISelLowering.cpp
+++ b/
lib/Target/X86/X86ISelLowering.cpp
@@
-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();