new option
authorbdemsky <bdemsky>
Wed, 1 Jul 2009 05:25:49 +0000 (05:25 +0000)
committerbdemsky <bdemsky>
Wed, 1 Jul 2009 05:25:49 +0000 (05:25 +0000)
Robust/src/Analysis/Locality/DelayComputation.java
Robust/src/IR/State.java
Robust/src/Main/Main.java
Robust/src/buildscript

index b8a78afc6be0a060ed18edc4bf9edc9c78fcae4b..964e6d523a6de15180b6e1164c174a343fc65a31 100644 (file)
@@ -65,6 +65,10 @@ public class DelayComputation {
        otherset.addAll(fm.getNodeSet());
        otherset.removeAll(notreadyset);
        otherset.removeAll(cannotdelay);
+       if (state.MINIMIZE) {
+         notreadyset.addAll(otherset);
+         otherset=new HashSet<FlatNode>();
+       }
 
        notreadymap.put(lb, notreadyset);
        othermap.put(lb, otherset);
index 713354f4697b6ee7c1e24acc13e610c4f27af605..bfbf60a8be81eb672e65766fb833c73d77f7eab1 100644 (file)
@@ -48,6 +48,7 @@ public class State {
   /** Boolean flag which indicates whether compiler is compiling a task-based
    * program. */
   public boolean WEBINTERFACE=false;
+  public boolean MINIMIZE=false;
   public boolean TASK=false;
   public boolean FASTCHECK=false;
   public boolean DSM=false;
index db6f700e3c8925e4736c839e564bca652e134167..270d4f906e99d632e27fe41183b1c1f7bea25b2e 100644 (file)
@@ -95,6 +95,8 @@ public class Main {
        State.PRINTFLAT=true;
       else if (option.equals("-printscheduling"))
        State.PRINTSCHEDULING=true;
+      else if (option.equals("-minimize"))
+       state.MINIMIZE=true;
       else if (option.equals("-printschedulesim"))
        State.PRINTSCHEDULESIM=true;
       else if (option.equals("-printcriticalpath"))
index 1495d6d852cce3082533993f5a67c7ceafd1ab38..9a9579be362d6d4dda70ee978401410571e211f0 100755 (executable)
@@ -277,6 +277,9 @@ elif [[ $1 = '-delaycomp' ]]
 then
 JAVAOPTS="$JAVAOPTS -delaycomp"
 EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
+elif [[ $1 = '-minimize' ]]
+then
+JAVAOPTS="$JAVAOPTS -minimize"
 elif [[ $1 = '-mlp' ]]
 then
 JAVAOPTS="$JAVAOPTS -mlp"