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:
de9f545
)
use getNumArgOperands
author
Gabor Greif
<ggreif@gmail.com>
Thu, 24 Jun 2010 00:48:48 +0000
(
00:48
+0000)
committer
Gabor Greif
<ggreif@gmail.com>
Thu, 24 Jun 2010 00:48:48 +0000
(
00:48
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106709
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/TailRecursionElimination.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/TailRecursionElimination.cpp
b/lib/Transforms/Scalar/TailRecursionElimination.cpp
index 3b019bcf27755afb949dd18aaae5a813b8ebea70..42f4a5f71d09a218b8d589a87b3a8696706c0cf1 100644
(file)
--- a/
lib/Transforms/Scalar/TailRecursionElimination.cpp
+++ b/
lib/Transforms/Scalar/TailRecursionElimination.cpp
@@
-454,7
+454,7
@@
bool TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry,
// Ok, now that we know we have a pseudo-entry block WITH all of the
// required PHI nodes, add entries into the PHI node for the actual
// parameters passed into the tail-recursive call.
- for (unsigned i = 0, e = CI->getNum
Operands()-1
; i != e; ++i)
+ for (unsigned i = 0, e = CI->getNum
ArgOperands()
; i != e; ++i)
ArgumentPHIs[i]->addIncoming(CI->getArgOperand(i), BB);
// If we are introducing an accumulator variable to eliminate the recursion,