diff options
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; } |