RegisterPressure: Slightly nicer pressure diff dumping

llvm-svn: 251884
This commit is contained in:
Matthias Braun 2015-11-03 01:53:33 +00:00
parent 93563e7032
commit 11859b5c8f
1 changed files with 3 additions and 1 deletions

View File

@ -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';
}