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

interpreter: (eqsat) handle common subexpression elimination #3806

Open
superlopuh opened this issue Jan 29, 2025 · 0 comments
Open

interpreter: (eqsat) handle common subexpression elimination #3806

superlopuh opened this issue Jan 29, 2025 · 0 comments
Labels
interpreter xDSL Interpreter

Comments

@superlopuh
Copy link
Member

GIven the following IR:

// x constant
a = constant 2
a_eq = eclass a
x_eq = eclass x
x_plus_x = add x_eq, x_eq

Applying x + x -> 2 * x should reuse the existing constant in the IR, instead of inserting a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter xDSL Interpreter
Projects
Development

No branches or pull requests

1 participant