summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2019-08-15 18:49:39 +0000
committerPhilip Reames <listmail@philipreames.com>2019-08-15 18:49:39 +0000
commitd202899431e49484d907608dbe74fa6d708bb07b (patch)
treeb7d48dfd7229b421e30ef1a3d0ae67851dee84b6 /llvm/lib
parent3f2850bc606c847075673554fe49d4a35f525b61 (diff)
downloadbcm5719-llvm-d202899431e49484d907608dbe74fa6d708bb07b.tar.gz
bcm5719-llvm-d202899431e49484d907608dbe74fa6d708bb07b.zip
[NFC] Add a couple of dump routines for RegisterPressure helper classes
llvm-svn: 369037
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegisterPressure.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp
index cdcbabfa258..8a287635c81 100644
--- a/llvm/lib/CodeGen/RegisterPressure.cpp
+++ b/llvm/lib/CodeGen/RegisterPressure.cpp
@@ -134,6 +134,22 @@ void PressureDiff::dump(const TargetRegisterInfo &TRI) const {
}
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
void RegPressureTracker::increaseRegPressure(unsigned RegUnit,
OpenPOWER on IntegriCloud