checkpoint
[sbp.git] / src / edu / berkeley / sbp / GSS.java
index 3c1174e..0d343a9 100644 (file)
@@ -213,8 +213,6 @@ class GSS {
                 for(Parser.Table.Reduction r : token==null ? state.getEofReductions() : state.getReductions(token))
                     if (r.numPop >= 1)
                         r.reduce(this, null, null);
-                for(int i=0; i<where; i++)
-                    queueReductions(get(i), false);
             }
 
             /** FIXME */
@@ -235,14 +233,12 @@ class GSS {
                     // cache instances here as a way of avoiding
                     // recreating them.
                     if (r.numPop <= 0) continue;
-                    if (includeLongs) {
-                        if (r.numPop == 1) {
-                            Forest ret = n.cache().get(r);
-                            if (ret != null) r.reduce(this, n2, ret);
-                            else n.cache().put(r, r.reduce(this, n2, null));
-                        } else {
-                            r.reduce(this, n2, null);
-                        }
+                    if (r.numPop == 1) {
+                        Forest ret = n.cache().get(r);
+                        if (ret != null) r.reduce(this, n2, ret);
+                        else n.cache().put(r, r.reduce(this, n2, null));
+                    } else {
+                        r.reduce(this, n2, null);
                     }
                 }
             }