aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2010-12-14 21:14:55 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2010-12-14 21:14:55 +0000
commit3ef9f3da397d27e2340742274a7f6e8b8f1149cf (patch)
tree7f0618fbd50efc68ab6ff3c2a2f42ea0ed5b6236 /lib/CodeGen/RegAllocGreedy.cpp
parent40edf73a62bf025eba4391e806fb1ddada662355 (diff)
Move debugging code entirely within DEBUG(). Silences an unused variable
warning in the opt build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--lib/CodeGen/RegAllocGreedy.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp
index 324340ad17..1c58bbe288 100644
--- a/lib/CodeGen/RegAllocGreedy.cpp
+++ b/lib/CodeGen/RegAllocGreedy.cpp
@@ -269,14 +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);
- });
- }
+ DEBUG({
+ Order.rewind();
+ while (unsigned PhysReg = Order.next()) {
+ query(VirtReg, PhysReg).print(dbgs(), TRI);
+ for (const unsigned *AI = TRI->getAliasSet(PhysReg); *AI; ++AI)
+ query(VirtReg, *AI).print(dbgs(), TRI);
+ }
+ });
return 0;
}