Skip to content

SimplifyGlobals: Do not assume the effect of reading/writing globals implies global.get/set#8433

Merged
kripken merged 5 commits intoWebAssembly:mainfrom
kripken:sg.eff
Mar 11, 2026
Merged

SimplifyGlobals: Do not assume the effect of reading/writing globals implies global.get/set#8433
kripken merged 5 commits intoWebAssembly:mainfrom
kripken:sg.eff

Conversation

@kripken
Copy link
Member

@kripken kripken commented Mar 9, 2026

This pass counts global.get/sets carefully, to figure out when all gets and
sets are accounted for in the "reads only to write" pattern. However, it
could miscount due to function effects: we could find the effect of a read/
write without an actual global.get/set, if we had a call to a function with
such contents, and we computed global effects for it.

@kripken kripken requested a review from tlively March 9, 2026 20:44
@kripken kripken merged commit 1b9b280 into WebAssembly:main Mar 11, 2026
17 checks passed
@kripken kripken deleted the sg.eff branch March 11, 2026 14:50
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