diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-07-31 07:10:27 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-07-31 07:10:27 -0700 |
commit | 58354d27c7f3f2d8f75522fe67875a2d57fcae9b (patch) | |
tree | 2a0a8b4127098a388eb4999e9d7270e50921cd8b /tests/008/data | |
parent | ddd576f8320ba50df0ca77aaad1829e5cc18d708 (diff) | |
download | txr-58354d27c7f3f2d8f75522fe67875a2d57fcae9b.tar.gz txr-58354d27c7f3f2d8f75522fe67875a2d57fcae9b.tar.bz2 txr-58354d27c7f3f2d8f75522fe67875a2d57fcae9b.zip |
compiler: bugfix: dangling rlinks after dead code elimination
Discovered while experimenting with new optimizations.
* stdlib/optimize.tl (basic-blocks :postinit): Pass t argument
to new parameter of basic-blocks link-graph.
(basic-blocks link-graph): New parameter indicating whether
this is the first call; if false, we reset all the links.
(basic-blocks elim-dead-code): This no longer has to reset
the links before calling link-graph. But now calls link-graph
one more time after the dead code removal so that no dead
blocks appear in the graph.
Diffstat (limited to 'tests/008/data')
0 files changed, 0 insertions, 0 deletions