diff options
author | Alon Zakai <azakai@google.com> | 2024-05-14 10:11:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 10:11:40 -0700 |
commit | 76a2c64402ebcc3ae6bf32f5f1c90f07d42cfa4b (patch) | |
tree | d89d74c2c4c199d1deb6bfb2c2ed50bb579bdb89 /test/example/cpp-unit.cpp | |
parent | 4ca05f765ca6ec99b7582d357520ca217265677d (diff) | |
download | binaryen-76a2c64402ebcc3ae6bf32f5f1c90f07d42cfa4b.tar.gz binaryen-76a2c64402ebcc3ae6bf32f5f1c90f07d42cfa4b.tar.bz2 binaryen-76a2c64402ebcc3ae6bf32f5f1c90f07d42cfa4b.zip |
LocalCSE: Ignore traps of code in between (#6588)
Given:
(ORIGINAL)
(in between)
(COPY)
We want to change that to
(local.tee $temp (ORIGINAL))
(in between)
(local.get $temp)
It is fine if "in between" traps: then we never reach the new local.get. This is a safer
situation than most optimizations because we are not reordering anything, only
replacing known-equivalent code.
Diffstat (limited to 'test/example/cpp-unit.cpp')
0 files changed, 0 insertions, 0 deletions