summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit86a05d0bed0a250e4dd179235bf04d8735a4b6c0 (patch)
tree5b22775ce6c299a44bdf669e3e0069032a1ae5d8 /llvm/lib/CodeGen/RegAllocGreedy.cpp
parent8c1fabe367f67db8fde21f604251e06cb1e2920c (diff)
downloadbcm5719-llvm-86a05d0bed0a250e4dd179235bf04d8735a4b6c0.tar.gz
bcm5719-llvm-86a05d0bed0a250e4dd179235bf04d8735a4b6c0.zip
Move debugging code entirely within DEBUG(). Silences an unused variable
warning in the opt build. llvm-svn: 121791
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocGreedy.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index 324340ad17b..1c58bbe2881 100644
--- a/llvm/lib/CodeGen/RegAllocGreedy.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud