Print out all neighbors in interference graph, not just higher-numbered ones.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 10 Jul 2003 19:43:33 +0000 (19:43 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 10 Jul 2003 19:43:33 +0000 (19:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7153 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAlloc/InterferenceGraph.cpp
lib/Target/SparcV9/RegAlloc/InterferenceGraph.cpp

index b9d61b6ad02d2a595c8b096f7ff61bcd05286b6a..b246e60539572ae046d281b9bec430b1b5b8be75 100644 (file)
@@ -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 << ") ";
       }
index b9d61b6ad02d2a595c8b096f7ff61bcd05286b6a..b246e60539572ae046d281b9bec430b1b5b8be75 100644 (file)
@@ -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 << ") ";
       }