aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-07-21 17:37:39 +0000
committerAndrew Trick <atrick@apple.com>2011-07-21 17:37:39 +0000
commita305fe75450348677a228f7d0f1cc53b2504b562 (patch)
tree3d2500c08b0c558cf087c6fe25ec6c001c5c5fed /lib/Transforms/Scalar
parenta50c175fe3c7a3034df18747cfacb3b153c493c8 (diff)
downloadexternal_llvm-a305fe75450348677a228f7d0f1cc53b2504b562.zip
external_llvm-a305fe75450348677a228f7d0f1cc53b2504b562.tar.gz
external_llvm-a305fe75450348677a228f7d0f1cc53b2504b562.tar.bz2
Cleanup: make std::pair usage slightly less indecipherable without actually naming variables!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/IndVarSimplify.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Transforms/Scalar/IndVarSimplify.cpp b/lib/Transforms/Scalar/IndVarSimplify.cpp
index 3f810cd..f2c69a2 100644
--- a/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -1389,23 +1389,24 @@ void IndVarSimplify::SimplifyIVUsersNoRewrite(Loop *L, SCEVExpander &Rewriter) {
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) {