[llvm-commits] [llvm] r112429 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Dan Gohman
gohman at apple.com
Sun Aug 29 07:53:34 PDT 2010
Author: djg
Date: Sun Aug 29 09:53:34 2010
New Revision: 112429
URL: http://llvm.org/viewvc/llvm-project?rev=112429&view=rev
Log:
Rename a variable, for consistency.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=112429&r1=112428&r2=112429&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Sun Aug 29 09:53:34 2010
@@ -1686,15 +1686,18 @@
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;
}
More information about the llvm-commits
mailing list