summaryrefslogtreecommitdiff
path: root/chapter09/src/main
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2026-09-27 08:52:12 -0700
committerCliff Click <cliffc@acm.org>2026-09-27 08:52:12 -0700
commitc5ef4e52fd7d183861b33476db999fa04f777607 (patch)
treefae4a9fb155a2e60b4b4390cd0ad3d30851257c8 /chapter09/src/main
parent4391fcc03a214e6296e19ca42487de023ab12f6a (diff)
downloadSimple-c5ef4e52fd7d183861b33476db999fa04f777607.tar.gz
Simple-c5ef4e52fd7d183861b33476db999fa04f777607.zip
Remove -disablePeephole
Diffstat (limited to 'chapter09/src/main')
-rw-r--r--chapter09/src/main/java/com/seaofnodes/simple/node/Node.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/chapter09/src/main/java/com/seaofnodes/simple/node/Node.java b/chapter09/src/main/java/com/seaofnodes/simple/node/Node.java
index d47e4f32..a0ec0289 100644
--- a/chapter09/src/main/java/com/seaofnodes/simple/node/Node.java
+++ b/chapter09/src/main/java/com/seaofnodes/simple/node/Node.java
@@ -301,17 +301,10 @@ public abstract class Node {
// 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();
@@ -623,7 +616,6 @@ public abstract class Node {
*/
public static void reset() {
UNIQUE_ID = 1;
- _disablePeephole=false;
GVN.clear();
ITER_CNT = ITER_NOP_CNT = 0;
}