mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 20:33:15 +00:00
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
This commit is contained in:
parent
a50c175fe3
commit
a305fe7545
@ -1389,23 +1389,24 @@ void IndVarSimplify::SimplifyIVUsersNoRewrite(Loop *L, SCEVExpander &Rewriter) {
|
|||||||
pushIVUsers(CurrIV, Simplified, SimpleIVUsers);
|
pushIVUsers(CurrIV, Simplified, SimpleIVUsers);
|
||||||
|
|
||||||
while (!SimpleIVUsers.empty()) {
|
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.
|
// Bypass back edges to avoid extra work.
|
||||||
if (Use.first == CurrIV) continue;
|
if (UseOper.first == CurrIV) continue;
|
||||||
|
|
||||||
if (EliminateIVUser(Use.first, Use.second)) {
|
if (EliminateIVUser(UseOper.first, UseOper.second)) {
|
||||||
pushIVUsers(Use.second, Simplified, SimpleIVUsers);
|
pushIVUsers(UseOper.second, Simplified, SimpleIVUsers);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (CastInst *Cast = dyn_cast<CastInst>(Use.first)) {
|
if (CastInst *Cast = dyn_cast<CastInst>(UseOper.first)) {
|
||||||
bool IsSigned = Cast->getOpcode() == Instruction::SExt;
|
bool IsSigned = Cast->getOpcode() == Instruction::SExt;
|
||||||
if (IsSigned || Cast->getOpcode() == Instruction::ZExt) {
|
if (IsSigned || Cast->getOpcode() == Instruction::ZExt) {
|
||||||
CollectExtend(Cast, IsSigned, WI, SE, TD);
|
CollectExtend(Cast, IsSigned, WI, SE, TD);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (isSimpleIVUser(Use.first, L, SE)) {
|
if (isSimpleIVUser(UseOper.first, L, SE)) {
|
||||||
pushIVUsers(Use.first, Simplified, SimpleIVUsers);
|
pushIVUsers(UseOper.first, Simplified, SimpleIVUsers);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (WI.WidestNativeType) {
|
if (WI.WidestNativeType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user