forked from OSchip/llvm-project
RegisterPressure: Slightly nicer pressure diff dumping
llvm-svn: 251884
This commit is contained in:
parent
93563e7032
commit
11859b5c8f
|
@ -78,11 +78,13 @@ void RegPressureTracker::dump() const {
|
|||
}
|
||||
|
||||
void PressureDiff::dump(const TargetRegisterInfo &TRI) const {
|
||||
const char *sep = "";
|
||||
for (const PressureChange &Change : *this) {
|
||||
if (!Change.isValid())
|
||||
break;
|
||||
dbgs() << " " << TRI.getRegPressureSetName(Change.getPSet())
|
||||
dbgs() << sep << TRI.getRegPressureSetName(Change.getPSet())
|
||||
<< " " << Change.getUnitInc();
|
||||
sep = " ";
|
||||
}
|
||||
dbgs() << '\n';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue