From c5ef4e52fd7d183861b33476db999fa04f777607 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sun, 27 Sep 2026 08:52:12 -0700 Subject: Remove -disablePeephole --- chapter03/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chapter03/README.md') diff --git a/chapter03/README.md b/chapter03/README.md index ddb9fafa..39baf903 100644 --- a/chapter03/README.md +++ b/chapter03/README.md @@ -124,8 +124,9 @@ The variables `a`, `b`, and `c` are registered in this table. * On line 5, a variable `b` is declared. `b` is registered in the symbol table at level 1. This then hides the variable with the same name on line 2. * On line 7, we update the variable `c`. Variable lookup will find it in the symbol table at level 0. -The node graph is shown below (note that peephole opts are switched off here so that we can -see the graph as its initially constructed). +The schematic below shows the variable bindings and arithmetic before constant +folding. The compiler applies peepholes as it builds the graph, so the actual +result of this example is `return 4;`. ![Graph1](./docs/03-graph1.svg) -- cgit v1.2.3