forked from OSchip/llvm-project
[NFC] Add a couple of dump routines for RegisterPressure helper classes
llvm-svn: 369037
This commit is contained in:
parent
3f2850bc60
commit
d202899431
|
@ -129,6 +129,8 @@ public:
|
||||||
bool operator==(const PressureChange &RHS) const {
|
bool operator==(const PressureChange &RHS) const {
|
||||||
return PSetID == RHS.PSetID && UnitInc == RHS.UnitInc;
|
return PSetID == RHS.PSetID && UnitInc == RHS.UnitInc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void dump() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// List of PressureChanges in order of increasing, unique PSetID.
|
/// List of PressureChanges in order of increasing, unique PSetID.
|
||||||
|
@ -248,6 +250,7 @@ struct RegPressureDelta {
|
||||||
bool operator!=(const RegPressureDelta &RHS) const {
|
bool operator!=(const RegPressureDelta &RHS) const {
|
||||||
return !operator==(RHS);
|
return !operator==(RHS);
|
||||||
}
|
}
|
||||||
|
void dump() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A set of live virtual registers and physical register units.
|
/// A set of live virtual registers and physical register units.
|
||||||
|
|
|
@ -134,6 +134,22 @@ void PressureDiff::dump(const TargetRegisterInfo &TRI) const {
|
||||||
}
|
}
|
||||||
dbgs() << '\n';
|
dbgs() << '\n';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LLVM_DUMP_METHOD
|
||||||
|
void PressureChange::dump() const {
|
||||||
|
dbgs() << "[" << getPSetOrMax() << ", " << getUnitInc() << "]\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
void RegPressureDelta::dump() const {
|
||||||
|
dbgs() << "[Excess=";
|
||||||
|
Excess.dump();
|
||||||
|
dbgs() << ", CriticalMax=";
|
||||||
|
CriticalMax.dump();
|
||||||
|
dbgs() << ", CurrentMax=";
|
||||||
|
CurrentMax.dump();
|
||||||
|
dbgs() << "]\n";
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void RegPressureTracker::increaseRegPressure(unsigned RegUnit,
|
void RegPressureTracker::increaseRegPressure(unsigned RegUnit,
|
||||||
|
|
Loading…
Reference in New Issue