diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-04 18:08:26 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-03-04 18:08:26 +0000 |
commit | fb69810a2b617d888b6ea7c6a69fee7364fe233b (patch) | |
tree | b71d577c3d74c6d711c5ff6639bb4b1930b7fd2b /lib/CodeGen/RegAllocGreedy.cpp | |
parent | 911a992c33287ef3f5972ae7a64fe56afd64bd98 (diff) | |
download | llvm-fb69810a2b617d888b6ea7c6a69fee7364fe233b.tar.gz llvm-fb69810a2b617d888b6ea7c6a69fee7364fe233b.tar.bz2 llvm-fb69810a2b617d888b6ea7c6a69fee7364fe233b.tar.xz |
Tweak debug output. No functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index eada8f9910..14e376db60 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -627,7 +627,12 @@ float RAGreedy::calcGlobalSplitCost(const BitVector &LiveBundles) { if (Inserts) GlobalCost += Inserts * SpillPlacer->getBlockFrequency(BC.Number); } - DEBUG(dbgs() << "Global cost = " << GlobalCost << '\n'); + DEBUG({ + dbgs() << "Global cost = " << GlobalCost << " with bundles"; + for (int i = LiveBundles.find_first(); i>=0; i = LiveBundles.find_next(i)) + dbgs() << " EB#" << i; + dbgs() << ".\n"; + }); return GlobalCost; } |