forked from OSchip/llvm-project
[RegisterScavenging] Delete dead function unprocess().
This commit is contained in:
parent
58d257b290
commit
8d21985a75
|
@ -89,15 +89,6 @@ public:
|
|||
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.
|
||||
/// Contrary to unprocess() this method gives precise results even in the
|
||||
/// absence of kill flags.
|
||||
|
|
|
@ -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() {
|
||||
// Move ptr forward.
|
||||
if (!Tracking) {
|
||||
|
|
Loading…
Reference in New Issue