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

Creating one egraph in generate-candidates #1143

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

AYadrov
Copy link
Contributor

@AYadrov AYadrov commented Jan 27, 2025

This PR implements the idea suggested by @pavpanchekha of removing simplify step for taylor expansions and, instead, pass them into run-rr function.
Or more general, this PR eliminates creation of one Egraph for simplifying taylor expansions.
Instead, taylor expansions are inputted to the same egraph as rewrite uses.
The result is: about the same accuracy has been achieved but with a large speedup.
Maybe it is worth trying increasing *node-limit* after this update.

@AYadrov AYadrov requested a review from pavpanchekha January 27, 2025 03:55
Copy link
Contributor

@pavpanchekha pavpanchekha left a comment

Choose a reason for hiding this comment

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

Love it, negative diff and a big speed up.

@@ -104,14 +104,14 @@

; node -> natural
; inserts an expression into the e-graph, returning its e-class id.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal but better to avoid making unnecessary whitespace changes like this.

@pavpanchekha pavpanchekha merged commit 328a3e6 into main Jan 27, 2025
6 checks passed
@pavpanchekha pavpanchekha deleted the simplify-rewrite-in-one-shot branch January 27, 2025 04:22
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