diff options
Diffstat (limited to 'chapter11/src/main/java')
| -rw-r--r-- | chapter11/src/main/java/com/seaofnodes/simple/node/Node.java | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/chapter11/src/main/java/com/seaofnodes/simple/node/Node.java b/chapter11/src/main/java/com/seaofnodes/simple/node/Node.java index 5ebcf843..67c82546 100644 --- a/chapter11/src/main/java/com/seaofnodes/simple/node/Node.java +++ b/chapter11/src/main/java/com/seaofnodes/simple/node/Node.java @@ -272,17 +272,10 @@ public abstract class Node implements OutNode { // Graph-based optimizations /** - * We allow disabling peephole opt so that we can observe the - * full graph, vs the optimized graph. - */ - public static boolean _disablePeephole = false; - - /** * Try to peephole at this node and return a better replacement Node. * Always returns some not-null Node (often this). */ public final Node peephole() { - if( _disablePeephole ) { _type = compute(); return this; } var obs = IterPeeps.midAssert() ? null : Parser.PARSER == null ? null : Parser.PARSER._obs; if( obs != null ) obs.before(this); Node n = peepholeOpt(); @@ -583,7 +576,6 @@ public abstract class Node implements OutNode { */ public static void reset() { UNIQUE_ID = 1; - _disablePeephole=false; GVN.clear(); ITER_CNT = ITER_NOP_CNT = 0; } |
