Skip to content

Optimize value-producing assembly #262

Discussion options

You must be logged in to vote

I do not think that register allocation is a problem well-suited to e-graphs; you don't want to be representing all possible ways to allocate registers. However, if you plan on doing some other kind of optimization in the e-graph, it's certainly possible to do things "outside" the e-graph and cooperate with those optimizations. For example, you might do a little optimization in the e-graph, extract some version of the program and do register coloring on that, and then re-insert that into the e-graph. I would also advise you that sequential instructions are not the friendliest representation for e-graphs; it is typically better to do some kind of conversion to dataflow first.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Wv5twkFEKh54vo4tta9yu7dHa3
Comment options

Answer selected by Wv5twkFEKh54vo4tta9yu7dHa3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants