Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented May 13, 2024

(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.

@kripken kripken requested review from aheejin and tlively May 13, 2024 23:25
@kripken kripken merged commit 76a2c64 into WebAssembly:main May 14, 2024
@kripken kripken deleted the wy.cse.4 branch May 14, 2024 17:11
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants