mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 11:51:13 +00:00
Move debugging code entirely within DEBUG(). Silences an unused variable
warning in the opt build. llvm-svn: 121791
This commit is contained in:
parent
e84e95e6d2
commit
01264443a8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user