summaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-02-27 11:53:25 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-02-27 11:53:25 -0800
commitc3174f915dbcd5cd90659279671b9a3005b840ea (patch)
tree2441e775f44f5dc929d7ea0e376f56b44254ddd0 /INSTALL
parent8a90bf63fafe544c990519282f054f72f3e866f4 (diff)
downloadtxr-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