%% how replay decides which pre-passes run over the range up to the next barrier.
flowchart TB
subgraph now["after: the recording side sums flags"]
C1["record a command"] --> C2["OR its flags into
the range's word"]
C2 --> C3["barrier record or
list header holds the word"]
C3 --> C4["replay reads one word,
runs only flagged passes"]
end
subgraph scan["before: one scan"]
B1["walk the range once,
read one field per record"] --> B2["run only passes
with work"]
end
subgraph before["Before: five walks"]
A1["indices"] --> A2["indirect"] --> A3["predication"] --> A4["indirect draws"] --> A5["stream output"]
end