[llvm-commits] [llvm] r135684 - /llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Andrew Trick
atrick at apple.com
Thu Jul 21 10:37:39 PDT 2011
Author: atrick
Date: Thu Jul 21 12:37:39 2011
New Revision: 135684
URL: http://llvm.org/viewvc/llvm-project?rev=135684&view=rev
Log:
Cleanup: make std::pair usage slightly less indecipherable without actually naming variables!
Modified:
llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=135684&r1=135683&r2=135684&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Thu Jul 21 12:37:39 2011
@@ -1389,23 +1389,24 @@
pushIVUsers(CurrIV, Simplified, SimpleIVUsers);
while (!SimpleIVUsers.empty()) {
- std::pair<Instruction*, Instruction*> Use =SimpleIVUsers.pop_back_val();
+ std::pair<Instruction*, Instruction*> UseOper =
+ SimpleIVUsers.pop_back_val();
// Bypass back edges to avoid extra work.
- if (Use.first == CurrIV) continue;
+ if (UseOper.first == CurrIV) continue;
- if (EliminateIVUser(Use.first, Use.second)) {
- pushIVUsers(Use.second, Simplified, SimpleIVUsers);
+ if (EliminateIVUser(UseOper.first, UseOper.second)) {
+ pushIVUsers(UseOper.second, Simplified, SimpleIVUsers);
continue;
}
- if (CastInst *Cast = dyn_cast<CastInst>(Use.first)) {
+ if (CastInst *Cast = dyn_cast<CastInst>(UseOper.first)) {
bool IsSigned = Cast->getOpcode() == Instruction::SExt;
if (IsSigned || Cast->getOpcode() == Instruction::ZExt) {
CollectExtend(Cast, IsSigned, WI, SE, TD);
}
continue;
}
- if (isSimpleIVUser(Use.first, L, SE)) {
- pushIVUsers(Use.first, Simplified, SimpleIVUsers);
+ if (isSimpleIVUser(UseOper.first, L, SE)) {
+ pushIVUsers(UseOper.first, Simplified, SimpleIVUsers);
}
}
if (WI.WidestNativeType) {
More information about the llvm-commits
mailing list