summaryrefslogtreecommitdiffstats
path: root/stdlib/compiler.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-04-17 16:46:10 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-04-17 16:46:10 -0700
commita4e89a91bff4de065b138a6fa4183cb4234d42c2 (patch)
treeb355e8c7149feee177c2f049bdff0172eac56d1d /stdlib/compiler.tl
parent95fe83f8521d660006d72562541480aeaae33ea0 (diff)
downloadtxr-a4e89a91bff4de065b138a6fa4183cb4234d42c2.tar.gz
txr-a4e89a91bff4de065b138a6fa4183cb4234d42c2.tar.bz2
txr-a4e89a91bff4de065b138a6fa4183cb4234d42c2.zip
compiler: rewrite t-regs through defining instruction.
* stdlib/optimize.tl (subst-preserve): Rename list param to insn for clarity. (careful-subst-preserve): New function. This is like subst-preserve, but used only for instructions that have destination registers. It performs a rewrite such that those destination positions are avoided. (basic-blocks rename): When the instruction has src or dst as a target, don't just stop before that insn. Do the substitution in the source operands using careful-subst-preserve.
Diffstat (limited to 'stdlib/compiler.tl')
0 files changed, 0 insertions, 0 deletions