aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-14 19:38:49 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-12-14 19:38:49 +0000
commitbfce678de7b509a497ac6d91f29e749adab7e40c (patch)
treecdea6d834a1ae18a565f3954e01ba409330486f7 /lib/CodeGen/RegAllocGreedy.cpp
parent4a84cce3ed0008baf72ccc6831a046215addd2d7 (diff)
Add LiveIntervalUnion print methods, RegAllocGreedy::trySplit debug spew.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 46cfbe7234..324340ad17 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -269,6 +269,14 @@ unsigned RAGreedy::tryReassign(LiveInterval &VirtReg, AllocationOrder &Order) {
unsigned RAGreedy::trySplit(LiveInterval &VirtReg, AllocationOrder &Order,
SmallVectorImpl<LiveInterval*>&SplitVRegs) {
NamedRegionTimer T("Splitter", TimerGroupName, TimePassesIsEnabled);
+ Order.rewind();
+ while (unsigned PhysReg = Order.next()) {
+ DEBUG({
+ query(VirtReg, PhysReg).print(dbgs(), TRI);
+ for (const unsigned *AI = TRI->getAliasSet(PhysReg); *AI; ++AI)
+ query(VirtReg, *AI).print(dbgs(), TRI);
+ });
+ }
return 0;
}