Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport egraph fixes to 17.0.1 #7889

Merged

Conversation

elliottt
Copy link
Member

@elliottt elliottt commented Feb 7, 2024

Backport recent fixes to the 17.0.0 branch for a 17.0.1 patch release.

elliottt and others added 4 commits February 7, 2024 10:52
Add a test to expose issues with unbounded recursion through `iadd`
during egraph rewrites, and bound the recursion of
`will_simplify_with_ireduce`.

Fixes bytecodealliance#7874

Co-authored-by: Nick Fitzgerald <fitzgen@gmail.com>
…ass (bytecodealliance#7859)

* Cranelift: Use a fixpoint loop to compute the best value for each eclass

Fixes bytecodealliance#7857

* Remove fixpoint loop early-continue optimization

* Add document describing optimization rule invariants

* Make select optimizations use subsume

* Remove invalid debug assert

* Remove now-unused methods

* Add commutative adds to cost tests
* Fix a few egraph rules that needed `subsume`

There were a few rules that dropped value references from the LHS
without using subsume. I think they were probably benign as they
produced constant results, but this change is in the spirit of our
revised guidelines for egraph rules.

* Augment egraph rule guideline 2 to talk about constants
@elliottt elliottt requested review from a team as code owners February 7, 2024 19:07
@elliottt elliottt requested review from fitzgen, pchickey and alexcrichton and removed request for a team February 7, 2024 19:07
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@elliottt elliottt merged commit fff54cb into bytecodealliance:release-17.0.0 Feb 7, 2024
40 checks passed
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.

None yet

2 participants