Skip to content

Fix OptimizeInstructions on unreachable GC RMWs#8485

Merged
tlively merged 1 commit intomainfrom
optimize-insts-unreachable-rmw
Mar 18, 2026
Merged

Fix OptimizeInstructions on unreachable GC RMWs#8485
tlively merged 1 commit intomainfrom
optimize-insts-unreachable-rmw

Conversation

@tlively
Copy link
Member

@tlively tlively commented Mar 18, 2026

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