Skip to content

Backport egraph fixes to 17.0.1#7889

Merged
elliottt merged 4 commits intobytecodealliance:release-17.0.0from
elliottt:trevor/backport-fixes
Feb 7, 2024
Merged

Backport egraph fixes to 17.0.1#7889
elliottt merged 4 commits intobytecodealliance:release-17.0.0from
elliottt:trevor/backport-fixes

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 alexcrichton, fitzgen and pchickey 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
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