Fix typo in comment again.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 6 Sep 2011 07:02:40 +0000 (07:02 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 6 Sep 2011 07:02:40 +0000 (07:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139139 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index e13f60554d35afbe5065e168098eab8b545e0642..b4c4da60ee5494d3cdba70ca551ba2228561151f 100644 (file)
@@ -1985,7 +1985,7 @@ const SCEV *ScalarEvolution::getMulExpr(SmallVectorImpl<const SCEV *> &Ops,
         // Rearranging, X = x, Y = y+z, Z = 2z.
         //
         // x = A*C, y = (A*D + B*C), z = B*D.
-        // Therefore X = A*C, Y = (A*D + B*C) - B*D and Z = 2*B*D.
+        // Therefore X = A*C, Y = (A*D + B*C) + B*D and Z = 2*B*D.
         for (; OtherIdx != Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
              ++OtherIdx)
           if (const SCEVAddRecExpr *OtherAddRec =