From d83614c6ff86bc7d0afd9c01c2f2d44e0b1f2e8c Mon Sep 17 00:00:00 2001 From: jjenista Date: Wed, 29 Apr 2009 17:47:24 +0000 Subject: [PATCH] Reinitialize liveness for the second pass, uses virtual reads to compute new answer. The combination of liveness results and variable analysis still generates no stalls --- Robust/src/Analysis/MLP/MLPAnalysis.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Robust/src/Analysis/MLP/MLPAnalysis.java b/Robust/src/Analysis/MLP/MLPAnalysis.java index 8f2208d4..cd6759df 100644 --- a/Robust/src/Analysis/MLP/MLPAnalysis.java +++ b/Robust/src/Analysis/MLP/MLPAnalysis.java @@ -99,6 +99,7 @@ public class MLPAnalysis { // 5th pass, compute liveness contribution from // virtual reads discovered in stall pass + livenessResults = new Hashtable< FlatNode, Set >(); livenessAnalysisBackward( rootSESE ); @@ -505,7 +506,7 @@ public class MLPAnalysis { default: { Set stallSet = vstTable.getStallSet( currentSESE ); - /* + Set 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 itr = stallSet.iterator(); while( itr.hasNext() ) { VariableSourceToken vst = itr.next(); - s += " "+vst.getVarLive(); + s += " "+vst.getVarLive()+","; } } } break; -- 2.34.1