major overhaul to institute optimal GSS sharing
[sbp.git] / src / edu / berkeley / sbp / Reduction.java
index 5eb3f63..222a168 100644 (file)
@@ -40,7 +40,10 @@ final class Reduction implements Comparable<Reduction> {
         return 1;
     }
 
-    public void perform() { new Result(forest, pred, reduction, phase); }
+    public void perform() {
+        if (reduction==null) return;
+        phase.newNodeFromReduction(forest, reduction, pred);
+    }
     public GSS.Phase predPhase() { return pred.phase(); }
     public Pos reduction() { return reduction; }
     public GSS.Phase targetPhase() { return phase; }