summaryrefslogtreecommitdiff
path: root/chapter10a/docs/example2b.gv
diff options
context:
space:
mode:
Diffstat (limited to 'chapter10a/docs/example2b.gv')
-rw-r--r--chapter10a/docs/example2b.gv7
1 files changed, 5 insertions, 2 deletions
diff --git a/chapter10a/docs/example2b.gv b/chapter10a/docs/example2b.gv
index 7ccbcc99..3f3309e5 100644
--- a/chapter10a/docs/example2b.gv
+++ b/chapter10a/docs/example2b.gv
@@ -1,8 +1,11 @@
digraph Memory {
- rankdir=LR;
+ rankdir=RL;
node [shape=box];
P [label="Phi(memory)"];
S [label="Loop-body Store"];
- P -> Entry [color=blue]; P -> S -> P [color=blue];
+ P -> Entry [color=blue];
+ P -> S [color=blue,constraint=false]; // Backedge must not place Store before Phi.
+ S -> P [color=blue];
P -> Loop [style=dashed]; Return -> P [color=blue];
+ Return -> S [style=invis]; // Layout only: Phi, Store, Return from left to right.
}