summaryrefslogtreecommitdiff
path: root/docs/chapter09/09-graph3.gv
diff options
context:
space:
mode:
authorThalia Archibald <thalia@archibald.dev>2024-03-03 17:55:47 +0000
committerThalia Archibald <thalia@archibald.dev>2024-11-16 15:19:12 -0800
commitc2813a97078c88726ecbc78ba985e9e4fefe2504 (patch)
tree59d4436fd346ddcd3240d54d8174a4f7a3de09f9 /docs/chapter09/09-graph3.gv
parent109db787c8ea744eb5989e0a6278fec2c4405196 (diff)
downloadSimple-c2813a97078c88726ecbc78ba985e9e4fefe2504.tar.gz
Simple-c2813a97078c88726ecbc78ba985e9e4fefe2504.zip
Chapter 9: Global Value Numbering and Iterative Peepholes
Co-authored-by: Cliff Click <cliffc@acm.org> Co-authored-by: XmiliaH <45106915+XmiliaH@users.noreply.github.com> Co-authored-by: Tamas Hadhazy <helsgithub15@gmail.com> Co-authored-by: Robert Obkircher <robert.obkircher@gmail.com> Co-authored-by: Dibyendu Majumdar <mobile@majumdar.org.uk> Co-authored-by: Darrick Wiebe <darrickw@untether.ai>
Diffstat (limited to 'docs/chapter09/09-graph3.gv')
-rw-r--r--docs/chapter09/09-graph3.gv37
1 files changed, 37 insertions, 0 deletions
diff --git a/docs/chapter09/09-graph3.gv b/docs/chapter09/09-graph3.gv
new file mode 100644
index 00000000..37bb1c53
--- /dev/null
+++ b/docs/chapter09/09-graph3.gv
@@ -0,0 +1,37 @@
+digraph chapter08 {
+/*
+return arg*arg-arg*arg;
+
+*/
+ rankdir=BT;
+ ordering="in";
+ concentrate="true";
+ compound="true";
+ subgraph cluster_Nodes {
+ Start2 [ shape=plaintext label=<
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
+ <TR><TD BGCOLOR="yellow">Start</TD></TR>
+ <TR><TD>
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
+ <TR><TD PORT="p0" BGCOLOR="yellow">$ctrl</TD><TD PORT="p1">arg</TD></TR>
+ </TABLE>
+ </TD></TR>
+ </TABLE>>
+ ];
+ Stop3 [ shape=box style=filled fillcolor=yellow label="Stop" ];
+ Mul6 [ label="*" ];
+ Mul7 [ label="*" ];
+ Sub8 [ label="-" ];
+ Return9 [ shape=box style=filled fillcolor=yellow label="Return" ];
+ }
+ edge [ fontname=Helvetica, fontsize=8 ];
+ Stop3 -> Return9[taillabel=0 color=red];
+ Mul6 -> Start2:p1[taillabel=1];
+ Mul6 -> Start2:p1[taillabel=2];
+ Mul7 -> Start2:p1[taillabel=1];
+ Mul7 -> Start2:p1[taillabel=2];
+ Sub8 -> Mul6[taillabel=1];
+ Sub8 -> Mul7[taillabel=2];
+ Return9 -> Start2:p0[taillabel=0 color=red];
+ Return9 -> Sub8[taillabel=1];
+}