if (collapse==LinearPartitioner.COLLAPSE_FREQ) { LinearCost cost = partitioner.getLinearAnalyzer().getLinearRepresentation(filter).getCost(); return cost.getFrequencyCost() - cost.getDirectCost(); } else { return 0;
int savings;  switch(collapse) {  case LinearPartitioner.COLLAPSE_ANY: {   savings = Math.max(get(LinearPartitioner.COLLAPSE_LINEAR), Math.max(get(LinearPartitioner.COLLAPSE_FREQ), get(LinearPartitioner.COLLAPSE_NONE))); break;
    public int get(int collapse) {	// never save anything at the filter level unless you're going	// to frequency	if (collapse==LinearPartitioner.COLLAPSE_FREQ) {	    LinearCost cost = partitioner.getLinearAnalyzer().getLinearRepresentation(filter).getCost();	    return cost.getFrequencyCost() - cost.getDirectCost();	} else {	    return 0;	}    }