Rename a variable, for consistency.
authorDan Gohman <gohman@apple.com>
Sun, 29 Aug 2010 14:53:34 +0000 (14:53 +0000)
committerDan Gohman <gohman@apple.com>
Sun, 29 Aug 2010 14:53:34 +0000 (14:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112429 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index d790e34adec0300b0d869e1f4a3a23e57f3899fe..a4cde1744fb5502ac67901189282605166d9d30a 100644 (file)
@@ -1686,15 +1686,18 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
                                                AddRec->op_end());
         for (; OtherIdx != Ops.size() && isa<SCEVAddRecExpr>(Ops[OtherIdx]);
              ++OtherIdx)
-          if (const SCEVAddRecExpr *AR =
+          if (const SCEVAddRecExpr *OtherAddRec =
                 dyn_cast<SCEVAddRecExpr>(Ops[OtherIdx]))
-            if (AR->getLoop() == AddRecLoop) {
-              for (unsigned i = 0, e = AR->getNumOperands(); i != e; ++i) {
+            if (OtherAddRec->getLoop() == AddRecLoop) {
+              for (unsigned i = 0, e = OtherAddRec->getNumOperands();
+                   i != e; ++i) {
                 if (i >= AddRecOps.size()) {
-                  AddRecOps.append(AR->op_begin()+i, AR->op_end());
+                  AddRecOps.append(OtherAddRec->op_begin()+i,
+                                   OtherAddRec->op_end());
                   break;
                 }
-                AddRecOps[i] = getAddExpr(AddRecOps[i], AR->getOperand(i));
+                AddRecOps[i] = getAddExpr(AddRecOps[i],
+                                          OtherAddRec->getOperand(i));
               }
               Ops.erase(Ops.begin() + OtherIdx); --OtherIdx;
             }