diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-19 22:27:22 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-19 22:27:22 +0000 |
commit | 8d67d2f5f8fcf8eeb269ab33315a848f4acfba06 (patch) | |
tree | 22720e87136a5fa60b002f2ccf8c45580a4bec39 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | 510bffca45b8c6c4836cd66bc1d5c831977554d4 (diff) | |
download | bcm5719-llvm-8d67d2f5f8fcf8eeb269ab33315a848f4acfba06.tar.gz bcm5719-llvm-8d67d2f5f8fcf8eeb269ab33315a848f4acfba06.zip |
Add a comment and tidy up some whitespace.
llvm-svn: 93932
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index a06321cecfd..7389007bf2f 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -1530,7 +1530,6 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops, return S; } - /// getMulExpr - Get a canonical multiply expression, or something simpler if /// possible. const SCEV *ScalarEvolution::getMulExpr(SmallVectorImpl<const SCEV *> &Ops, @@ -1558,7 +1557,6 @@ const SCEV *ScalarEvolution::getMulExpr(SmallVectorImpl<const SCEV *> &Ops, return getAddExpr(getMulExpr(LHSC, Add->getOperand(0)), getMulExpr(LHSC, Add->getOperand(1))); - ++Idx; while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { // We found two constants, fold them together! @@ -1877,6 +1875,8 @@ ScalarEvolution::getAddRecExpr(SmallVectorImpl<const SCEV *> &Operands, } } + // Okay, it looks like we really DO need an addrec expr. Check to see if we + // already have one, otherwise create a new one. FoldingSetNodeID ID; ID.AddInteger(scAddRecExpr); ID.AddInteger(Operands.size()); |