summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitcd3e8cb8821a503f12260da537288971745176c7 (patch)
treefae4e19d220b573a6f195dd72b11cdd1120e5ed0 /llvm/lib/Transforms/Scalar
parent5fb77375135335257db850a5cf242beddd414cda (diff)
downloadbcm5719-llvm-cd3e8cb8821a503f12260da537288971745176c7.tar.gz
bcm5719-llvm-cd3e8cb8821a503f12260da537288971745176c7.zip
Cleanup: make std::pair usage slightly less indecipherable without actually naming variables!
llvm-svn: 135684
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 3f810cdf5a2..f2c69a258cb 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud