summaryrefslogtreecommitdiff
path: root/test/lit/isorecursive-output-ordering.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-09-14 16:15:26 -0700
committerGitHub <noreply@github.com>2023-09-14 23:15:26 +0000
commit56ce1eaba7f500b572bcfe06e3248372e9672322 (patch)
tree67318f878acb57db192b805440db236c111c9cbb /test/lit/isorecursive-output-ordering.wast
parent6dde22cd3a65bb4adee8ff9f6107093cdf42b346 (diff)
downloadbinaryen-56ce1eaba7f500b572bcfe06e3248372e9672322.tar.gz
binaryen-56ce1eaba7f500b572bcfe06e3248372e9672322.tar.bz2
binaryen-56ce1eaba7f500b572bcfe06e3248372e9672322.zip
Optimize tuple.extract of gets in BinaryInstWriter (#5941)
In general, the binary lowering of tuple.extract expects that all the tuple values are on top of the stack, so it inserts drops and possibly uses a scratch local to ensure only the extracted value is left. However, when the extracted tuple expression is a local.get, local.tee, or global.get, it's much more efficient to change the lowering of the get or tee to ensure that only the extracted value is on the stack to begin with. Implement that optimization in the binary writer.
Diffstat (limited to 'test/lit/isorecursive-output-ordering.wast')
0 files changed, 0 insertions, 0 deletions