Skip to content

ConstraintAnalysis: Parse EqZ recursively - #9138

Merged
kripken merged 2 commits into
WebAssembly:mainfrom
kripken:c.eqz.neg
Sep 23, 2026
Merged

kripken merged 2 commits into
WebAssembly:mainfrom
kripken:c.eqz.neg

Conversation

@kripken

@kripken kripken commented Sep 22, 2026

Copy link
Copy Markdown
Member

This allows us to parse things like (eqz (ref.is_null ..)) which means
"is not null". It also cleans up the code a little: just recurse into the
EqZ argument, and negate the result.

Recursion does in theory risk a stack overflow, but eqzs are not
deeply nested in code (certainly not optimized code, which is what
this pass sees, as we run it late).

@kripken
kripken requested a review from a team as a code owner September 22, 2026 21:59
@kripken
kripken requested review from tlively and removed request for a team September 22, 2026 21:59
@kripken
kripken merged commit d2c2333 into WebAssembly:main Sep 23, 2026
16 checks passed
@kripken
kripken deleted the c.eqz.neg branch September 23, 2026 17:29
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