[RegisterScavenging] Delete dead function unprocess().

This commit is contained in:
Eli Friedman 2020-08-27 13:17:47 -07:00
parent 58d257b290
commit 8d21985a75
2 changed files with 0 additions and 28 deletions

View File

@ -89,15 +89,6 @@ public:
while (MBBI != I) forward(); while (MBBI != I) forward();
} }
/// Invert the behavior of forward() on the current instruction (undo the
/// changes to the available registers made by forward()).
void unprocess();
/// Unprocess instructions until you reach the provided iterator.
void unprocess(MachineBasicBlock::iterator I) {
while (MBBI != I) unprocess();
}
/// Update internal register state and move MBB iterator backwards. /// Update internal register state and move MBB iterator backwards.
/// Contrary to unprocess() this method gives precise results even in the /// Contrary to unprocess() this method gives precise results even in the
/// absence of kill flags. /// absence of kill flags.

View File

@ -154,25 +154,6 @@ void RegScavenger::determineKillsAndDefs() {
} }
} }
void RegScavenger::unprocess() {
assert(Tracking && "Cannot unprocess because we're not tracking");
MachineInstr &MI = *MBBI;
if (!MI.isDebugInstr()) {
determineKillsAndDefs();
// Commit the changes.
setUnused(DefRegUnits);
setUsed(KillRegUnits);
}
if (MBBI == MBB->begin()) {
MBBI = MachineBasicBlock::iterator(nullptr);
Tracking = false;
} else
--MBBI;
}
void RegScavenger::forward() { void RegScavenger::forward() {
// Move ptr forward. // Move ptr forward.
if (!Tracking) { if (!Tracking) {