diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-04-17 16:46:10 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-04-17 16:46:10 -0700 |
commit | 1d8779bc361158bd49ae6fe1d487f59fbfe7b2e3 (patch) | |
tree | b355e8c7149feee177c2f049bdff0172eac56d1d /ftw.h | |
parent | 1cd7fb50f4a68b39c6715203bc7e92808188d7c0 (diff) | |
download | txr-1d8779bc361158bd49ae6fe1d487f59fbfe7b2e3.tar.gz txr-1d8779bc361158bd49ae6fe1d487f59fbfe7b2e3.tar.bz2 txr-1d8779bc361158bd49ae6fe1d487f59fbfe7b2e3.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 'ftw.h')
0 files changed, 0 insertions, 0 deletions