Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix OptimizeInstructions on unreachable GC RMWs - #8485

#8485
Merged
tlively merged 1 commit into
mainWebAssembly/binaryen:mainfrom
optimize-insts-unreachable-rmwWebAssembly/binaryen:optimize-insts-unreachable-rmwCopy head branch name to clipboard
Mar 18, 2026
Merged

Fix OptimizeInstructions on unreachable GC RMWs#8485
tlively merged 1 commit into
mainWebAssembly/binaryen:mainfrom
optimize-insts-unreachable-rmwWebAssembly/binaryen:optimize-insts-unreachable-rmwCopy head branch name to clipboard

Conversation

@tlively

@tlively tlively commented Mar 18, 2026

Copy link
Copy Markdown
Member

OptimizeInstructions lowers RMWs on non-shared GC data to sequences of non-atomic operations. It would previously do this even for expressions with unreachable children, which caused assertion failures when trying to make unreachable scratch locals. Bail out early and leave the optimization to DCE in this case.

OptimizeInstructions lowers RMWs on non-shared GC data to sequences of non-atomic operations. It would previously do this even for expressions with unreachable children, which caused assertion failures when trying to make unreachable scratch locals. Bail out early and leave the optimization to DCE in this case.
@tlively
tlively requested a review from kripken March 18, 2026 18:03
@tlively
tlively enabled auto-merge (squash) March 18, 2026 18:32
@tlively
tlively merged commit e2dd078 into main Mar 18, 2026
16 checks passed
@tlively
tlively deleted the optimize-insts-unreachable-rmw branch March 18, 2026 19:00
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.