summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-09-06 06:56:00 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-09-06 06:56:00 +0000
commit9115fba853ec3f89bf335b22ae51fbf18439e171 (patch)
tree85d2d822d39de3fbd3bd5d303c899f85d7692e9b /lib/Analysis
parente6180992eb4730563a06c85545ca9cfbc033b7c9 (diff)
downloadllvm-9115fba853ec3f89bf335b22ae51fbf18439e171.tar.gz
llvm-9115fba853ec3f89bf335b22ae51fbf18439e171.tar.bz2
llvm-9115fba853ec3f89bf335b22ae51fbf18439e171.tar.xz
Apparently we compile the code, not the comments. Thanks Eli!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index 4bb69ddb27..e13f60554d 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -1998,8 +1998,7 @@ const SCEV *ScalarEvolution::getMulExpr(SmallVectorImpl<const SCEV *> &Ops,
const SCEV *NewStart = getMulExpr(A, C);
const SCEV *BD = getMulExpr(B, D);
const SCEV *NewStep = getAddExpr(getMulExpr(A, D),
- getMulExpr(B, C),
- getNegativeSCEV(BD));
+ getMulExpr(B, C), BD);
const SCEV *NewSecondOrderStep =
getMulExpr(BD, getConstant(BD->getType(), 2));