Skip to content

OptimizeInstructions: Consecutive instrs are not equal if one tees and one reads#8415

Merged
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:regress
Mar 4, 2026
Merged

OptimizeInstructions: Consecutive instrs are not equal if one tees and one reads#8415
kripken merged 2 commits intoWebAssembly:mainfrom
kripken:regress

Conversation

@kripken
Copy link
Member

@kripken kripken commented Mar 4, 2026

areConsecutiveInputsEqual looks at fallthrough values when comparing, but
it must look at the original values for effects. It did that for the right side, but
not the left.

This was incorrect for a very long time, and only uncovered by

#8355 (comment)

I suspect it might have even been undiscoverable until then, even though it
was logically false (in that nothing reached it that could hit the bug).

@kripken kripken merged commit ec79a6b into WebAssembly:main Mar 4, 2026
17 checks passed
@kripken kripken deleted the regress branch March 4, 2026 22:21
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