fitzgen opened PR #14134 from fitzgen:issue-14131 to bytecodealliance:main:
When we eliminate a dead store, we undo the effects that the dead store had on the
LastStorestate. However, querying the last store for a particular region falls back to the last fence, and we were incorrectly restoring that last fence into the region slot, rather than resetting the region slot toNone. While technically incorrect, it was generally benign, but it did lead to "observing" instructions that we didn't mark observed during our initial observation pass, which ultimately led to debug assertion failures.Fixes #14131
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
fitzgen requested alexcrichton for a review on PR #14134.
fitzgen requested wasmtime-compiler-reviewers for a review on PR #14134.
alexcrichton unassigned alexcrichton from PR #14134 Alias analysis: do not restore the last-fence into a region slot.
alexcrichton requested cfallin for a review on PR #14134.
:thumbs_up: cfallin submitted PR review:
Looks right to me -- very subtle. Thanks for the fix!
cfallin commented on PR #14134:
(And just to note and make sure it doesn't get missed -- this needs a backport to
release-48.0once merged too. Currently looks like a whitespace issue in a test expectation blocking this merge)
github-actions[bot] added the label cranelift on PR #14134.
fitzgen updated PR #14134.
fitzgen has enabled auto merge for PR #14134.
fitzgen added PR #14134 Alias analysis: do not restore the last-fence into a region slot to the merge queue.
:check: fitzgen merged PR #14134.
fitzgen removed PR #14134 Alias analysis: do not restore the last-fence into a region slot from the merge queue.
Last updated: Aug 30 2026 at 09:07 UTC