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);
/** 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;
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"))
then
JAVAOPTS="$JAVAOPTS -delaycomp"
EXTRAOPTIONS="$EXTRAOPTIONS -DDELAYCOMP"
+elif [[ $1 = '-minimize' ]]
+then
+JAVAOPTS="$JAVAOPTS -minimize"
elif [[ $1 = '-mlp' ]]
then
JAVAOPTS="$JAVAOPTS -mlp"