Skip to content

ConstraintAnalysis: Optimize self-comparisons (x ? x) - #9252

Merged
kripken merged 1 commit into
WebAssembly:mainfrom
kripken:c.self
Oct 14, 2026
Merged

kripken merged 1 commit into
WebAssembly:mainfrom
kripken:c.self

Conversation

@kripken

@kripken kripken commented Oct 12, 2026

Copy link
Copy Markdown
Member

Even with no known constraints on x, we can evaluate things like
x == x and x < x.

Fixes #7672

@kripken
kripken requested a review from a team as a code owner October 12, 2026 20:43
@kripken
kripken requested review from aheejin and removed request for a team October 12, 2026 20:43
@kripken
kripken merged commit a885222 into WebAssembly:main Oct 14, 2026
16 checks passed
@kripken
kripken deleted the c.self branch October 14, 2026 15:58
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.

SimplifyLocals causes ineffective code

2 participants