This is a rust implementation of the Sea of Nodes - Simple example.
Cliff Click introduced the C2 HotSpot compiler. It was the first of a kind JIT compiler and to this day it is still the core idea behind the HotSpot JIT
Modern Compiler Implementation in Java
a is a subtype of b b is a supertype of a.
| ID | Short explanation |
|---|---|
| T_CONSTFLD | Typ(#1+#2)=Typ(#3) |
| T_CONSTPROP | Infer types through def edges |
| T_ARITH_IDENT | Add of 0, Mul by 1, Div by 1, Sub by 0 |
| T_ADD_SAME | a + a => 2a |
| T_LEFT_SPINE | Adds are all on the left |
| T_ASSOCIATIVITY | x + (a + b) => (x + a) + b |
| T_CANONIC_INC_NID | Order operands in strictly increasing unique node id |
| T_RIGHT_CONST | (x + con1) + con2 => x + (con1 + con2) |

