Reinitialize liveness for the second pass, uses virtual reads to compute new answer...
authorjjenista <jjenista>
Wed, 29 Apr 2009 17:47:24 +0000 (17:47 +0000)
committerjjenista <jjenista>
Wed, 29 Apr 2009 17:47:24 +0000 (17:47 +0000)
Robust/src/Analysis/MLP/MLPAnalysis.java

index 8f2208d466dfcec6e99d71e06ab7b3e6407d7266..cd6759dfcd5cf4c46b496a1b8431c015e968a283 100644 (file)
@@ -99,6 +99,7 @@ public class MLPAnalysis {
 
     // 5th pass, compute liveness contribution from
     // virtual reads discovered in stall pass
+    livenessResults = new Hashtable< FlatNode, Set<TempDescriptor> >();
     livenessAnalysisBackward( rootSESE );
 
 
@@ -505,7 +506,7 @@ public class MLPAnalysis {
     default: {          
       Set<VariableSourceToken> stallSet = vstTable.getStallSet( currentSESE );
      
-      /*
+      
       Set<TempDescriptor>      liveIn   = livenessResults.get( fn );
 
       if( liveIn != null ) {
@@ -514,14 +515,14 @@ public class MLPAnalysis {
        // there is nothing live, clear all
        stallSet.clear();
       }
-      */
+      
 
       if( !stallSet.isEmpty() ) {
        s = "STALL for:";
        Iterator<VariableSourceToken> itr = stallSet.iterator();
        while( itr.hasNext() ) {
          VariableSourceToken vst = itr.next();
-         s += "  "+vst.getVarLive();
+         s += "  "+vst.getVarLive()+",";
        }       
       }      
     } break;