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 | 01d211b53845ee5fbd6ec74d541e439b5c57dc7c (patch) | |
| tree | b45dd302fc47f50e24c0ac984fba9f75e4a88ce0 /lib/Analysis | |
| parent | 7637e0eeb343654dfdb3cab4ceeee7789cc5c567 (diff) | |
| download | external_llvm-01d211b53845ee5fbd6ec74d541e439b5c57dc7c.zip external_llvm-01d211b53845ee5fbd6ec74d541e439b5c57dc7c.tar.gz external_llvm-01d211b53845ee5fbd6ec74d541e439b5c57dc7c.tar.bz2 | |
Add a comment and tidy up some whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
| -rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index a06321c..7389007 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/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()); |
