Skip to content

[NFC-for-now] Fix LocalCSE bug in ignoring traps#8385

Open
kripken wants to merge 2 commits intoWebAssembly:mainfrom
kripken:lcse.nfcish
Open

[NFC-for-now] Fix LocalCSE bug in ignoring traps#8385
kripken wants to merge 2 commits intoWebAssembly:mainfrom
kripken:lcse.nfcish

Conversation

@kripken
Copy link
Member

@kripken kripken commented Feb 25, 2026

The code did "trap = false; scan()", but that is wrong, as it wants to remove the
trap after the scan. Reorder and just use a ShallowEffectAnalyzer.

But this logic bug was not actually allowing different behavior, see the
detailed comment - we have no effects atm that can distinguish the two cases.
If we add new effects, we might, though, so this is worth doing.

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