From: Vikram S. Adve Date: Thu, 10 Jul 2003 19:43:33 +0000 (+0000) Subject: Print out all neighbors in interference graph, not just higher-numbered ones. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=51bda6fccbbea7b88ecf6a69c567085fd64eeb5f;p=oota-llvm.git Print out all neighbors in interference graph, not just higher-numbered ones. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7153 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp b/lib/CodeGen/RegAlloc/InterferenceGraph.cpp index b9d61b6ad02..b246e605395 100644 --- a/lib/CodeGen/RegAlloc/InterferenceGraph.cpp +++ b/lib/CodeGen/RegAlloc/InterferenceGraph.cpp @@ -224,7 +224,7 @@ void InterferenceGraph::printIG() const if(Node) { cerr << " [" << i << "] "; - for( unsigned int j=0; j < i; j++) { + for( unsigned int j=0; j < Size; j++) { if(IG[i][j]) cerr << "(" << i << "," << j << ") "; } diff --git a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp index b9d61b6ad02..b246e605395 100644 --- a/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp +++ b/lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp @@ -224,7 +224,7 @@ void InterferenceGraph::printIG() const if(Node) { cerr << " [" << i << "] "; - for( unsigned int j=0; j < i; j++) { + for( unsigned int j=0; j < Size; j++) { if(IG[i][j]) cerr << "(" << i << "," << j << ") "; }