diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-02-27 11:53:25 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-02-27 11:53:25 -0800 |
commit | c3174f915dbcd5cd90659279671b9a3005b840ea (patch) | |
tree | 2441e775f44f5dc929d7ea0e376f56b44254ddd0 /INSTALL | |
parent | 8a90bf63fafe544c990519282f054f72f3e866f4 (diff) | |
download | txr-c3174f915dbcd5cd90659279671b9a3005b840ea.tar.gz txr-c3174f915dbcd5cd90659279671b9a3005b840ea.tar.bz2 txr-c3174f915dbcd5cd90659279671b9a3005b840ea.zip |
compiler: add dead code elimination pass.
* share/txr/stdlib/compiler.tl (compiler optimize): Call new
elim-dead-code method on basic-blocks object.
* share/txr/stdlib/optimize.tl (basic-blocks elim-dead-code):
New method. We reset the links information for each basic
block and re-build the graph. Then we traverse it to determine
what blocks are reachable, and cull the original blocks list
of those that are not.
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions