From: Matthias Braun Date: Tue, 3 Nov 2015 01:53:33 +0000 (+0000) Subject: RegisterPressure: Slightly nicer pressure diff dumping X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=363f18097ad2e88d0e741ee6dae452779f64a1b9;p=oota-llvm.git RegisterPressure: Slightly nicer pressure diff dumping git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251884 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegisterPressure.cpp b/lib/CodeGen/RegisterPressure.cpp index ba0a9158b46..57dde2f2e2d 100644 --- a/lib/CodeGen/RegisterPressure.cpp +++ b/lib/CodeGen/RegisterPressure.cpp @@ -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'; }