Apparently we compile the code, not the comments. Thanks Eli!
authorNick Lewycky <nicholas@mxc.ca>
Tue, 6 Sep 2011 06:56:00 +0000 (06:56 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 6 Sep 2011 06:56:00 +0000 (06:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 4bb69ddb276a17f95c1400d7d832ebdf6472a9ff..e13f60554d35afbe5065e168098eab8b545e0642 100644 (file)
@@ -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));