diff options
| author | Cliff Click <cliffc@acm.org> | 2026-09-09 17:01:02 -0700 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-09-09 17:01:02 -0700 |
| commit | 1f4006e88df54e2b7086bc49e05ffc6d2068e8fd (patch) | |
| tree | 92e8204618117676e962679fa0b385b2db047674 /chapter13/src/main/java/com | |
| parent | 91c6ed0f6978215a0448f5bf91600e5fdb2a77d8 (diff) | |
| parent | 6b4ed4d07831f738755cb8162eff24d6d9a695fc (diff) | |
| download | Simple-1f4006e88df54e2b7086bc49e05ffc6d2068e8fd.tar.gz Simple-1f4006e88df54e2b7086bc49e05ffc6d2068e8fd.zip | |
Merge branch 'main' of https://github.com/SeaOfNodes/Simple
Diffstat (limited to 'chapter13/src/main/java/com')
| -rw-r--r-- | chapter13/src/main/java/com/seaofnodes/simple/node/BoolNode.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter13/src/main/java/com/seaofnodes/simple/node/BoolNode.java b/chapter13/src/main/java/com/seaofnodes/simple/node/BoolNode.java index a31bd963..f202b263 100644 --- a/chapter13/src/main/java/com/seaofnodes/simple/node/BoolNode.java +++ b/chapter13/src/main/java/com/seaofnodes/simple/node/BoolNode.java @@ -67,9 +67,9 @@ abstract public class BoolNode extends Node { return new NotNode(in(1)); } - // Do we have ((x * (phi cons)) * con) ? - // Do we have ((x * (phi cons)) * (phi cons)) ? - // Push constant up through the phi: x * (phi con0*con0 con1*con1...) + // Do we have ((phi cons) cmp con) ? + // Do we have ((phi cons) cmp (phi cons)) ? + // Push the compare up through the phi: (phi con0 cmp con, con1 cmp con...) Node phicon = AddNode.phiCon(this,this instanceof EQ); if( phicon!=null ) return phicon; |
