summaryrefslogtreecommitdiff
path: root/docs/chapter09/09-graph4.gv
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-03-03 17:55:47 +0000
committerCliff Click <cliffc@acm.org>2026-08-10 11:11:18 -0700
commitdb1f10bc5dcf7171e17ed07286c0a2a75fddc52e (patch)
tree637cf41d1990f9ee47632a79baa9b6085854b8e6 /docs/chapter09/09-graph4.gv
parentdc04c899119ea37e5eb26d91091eb616b5d496d3 (diff)
downloadSimple-db1f10bc5dcf7171e17ed07286c0a2a75fddc52e.tar.gz
Simple-db1f10bc5dcf7171e17ed07286c0a2a75fddc52e.zip
Chapter 9: Global Value Numbering and Iterative Peepholes
Co-authored-by: Thalia Archibald <thalia@archibald.dev> Co-authored-by: Tamás Hadházy <85063808+Hels15@users.noreply.github.com> Co-authored-by: Hsiang-Ying Fu <66062782+fuhsnn@users.noreply.github.com> Co-authored-by: tannal <tannal2409@gmail.com> Co-authored-by: hadha <helsgithub15@gmail.com> Co-authored-by: XmiliaH <45106915+XmiliaH@users.noreply.github.com> Co-authored-by: Tamas Hadhazy <helsgithub15@gmail.com> Co-authored-by: RobertObkircher <robert.obkircher@gmail.com> Co-authored-by: Robert Obkircher <robert.obkircher@gmail.com> Co-authored-by: Hadházy Tamás <helsgithub15@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-graph4.gv')
-rw-r--r--docs/chapter09/09-graph4.gv29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/chapter09/09-graph4.gv b/docs/chapter09/09-graph4.gv
new file mode 100644
index 00000000..8886f73a
--- /dev/null
+++ b/docs/chapter09/09-graph4.gv
@@ -0,0 +1,29 @@
+digraph chapter09 {
+/*
+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></TR>
+ </TABLE>
+ </TD></TR>
+ </TABLE>>
+ ];
+ Stop3 [ shape=box style=filled fillcolor=yellow label="Stop" ];
+ Con_9 [ label="#0" ];
+ Return10 [ shape=box style=filled fillcolor=yellow label="Return" ];
+ }
+ edge [ fontname=Helvetica, fontsize=8 ];
+ Stop3 -> Return10[taillabel=0 color=red];
+ Return10 -> Start2:p0[taillabel=0 color=red];
+ Return10 -> Con_9[taillabel=1];
+}