mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
LiveInterval: Use range based for loops for subregister ranges.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -288,10 +288,9 @@ void LiveRangeEdit::eliminateDeadDef(MachineInstr *MI, ToShrinkSet &ToShrink) {
|
||||
RegsToErase.push_back(Reg);
|
||||
} else {
|
||||
// Also remove the value in subranges.
|
||||
for (LiveInterval::subrange_iterator S = LI.subrange_begin(),
|
||||
SE = LI.subrange_end(); S != SE; ++S) {
|
||||
if (VNInfo *SVNI = S->getVNInfoAt(Idx))
|
||||
S->removeValNo(SVNI);
|
||||
for (LiveInterval::SubRange &S : LI.subranges()) {
|
||||
if (VNInfo *SVNI = S.getVNInfoAt(Idx))
|
||||
S.removeValNo(SVNI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user