aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-15 20:36:15 +0000
committerChris Lattner <sabre@nondot.org>2002-04-15 20:36:15 +0000
commit167b9629e18bace3e735b87e21ecf7b967672a4b (patch)
tree4a1d35d67f52d8f2a9d77e32fdce966d74a1455c /lib/Target
parent8d70cd9607d75cec914090345136b9d49cc1fdac (diff)
downloadexternal_llvm-167b9629e18bace3e735b87e21ecf7b967672a4b.zip
external_llvm-167b9629e18bace3e735b87e21ecf7b967672a4b.tar.gz
external_llvm-167b9629e18bace3e735b87e21ecf7b967672a4b.tar.bz2
Only emit message if DEBUG_RA is on
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/SparcV9/RegAlloc/RegClass.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/RegAlloc/RegClass.cpp b/lib/Target/SparcV9/RegAlloc/RegClass.cpp
index a0d43c8..607a4da 100644
--- a/lib/Target/SparcV9/RegAlloc/RegClass.cpp
+++ b/lib/Target/SparcV9/RegAlloc/RegClass.cpp
@@ -71,15 +71,14 @@ void RegClass::pushAllIGNodes()
// spill cost) and try to push the others as unConstrained nodes.
// Repeat this.
- do{
-
+ do {
//get node with min spill cost
//
IGNode *IGNodeSpill = getIGNodeWithMinSpillCost();
// push that node on to stack
//
- IGNodeStack.push( IGNodeSpill );
+ IGNodeStack.push(IGNodeSpill);
// set its OnStack flag and decrement degree of neighs
//
@@ -87,11 +86,12 @@ void RegClass::pushAllIGNodes()
// now push NON-constrined ones, if any
//
- NeedMoreSpills = ! pushUnconstrainedIGNodes();
+ NeedMoreSpills = !pushUnconstrainedIGNodes();
- cerr << "\nConstrained IG Node found !@!" << IGNodeSpill->getIndex();
+ if (DEBUG_RA)
+ cerr << "\nConstrained IG Node found !@!" << IGNodeSpill->getIndex();
- } while( NeedMoreSpills ); // repeat until we have pushed all
+ } while(NeedMoreSpills); // repeat until we have pushed all
}