Skip to content

Representing Loops within Egg #106

Answered by jameysharp
Kixiron asked this question in Q&A
Jul 12, 2021 · 2 comments · 12 replies
Discussion options

You must be logged in to vote

I'm grateful that you mentioned RVSDG here, @Kixiron. Based on your suggestion I read those papers this month, especially "Perfect Reconstructability of Control Flow from Demand Dependence Graphs", which convinced me that it's a good model for arbitrary control flow in an e-graph. Re-reading my own blog post from five years ago ("Search-based compiler code generation"), I'd apparently discovered the "Perfect Reconstructability" paper then, but by the time I learned about equality saturation I'd forgotten all about it.

And now I have a working prototype of e-graphs for RVSDG, based on egg. Every valid RVSDG is acyclic, so avoids the extraction difficulties discussed here, but you can still…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
11 replies
@mwillsey
Comment options

@Kixiron
Comment options

@mwillsey
Comment options

@Kixiron
Comment options

@mwillsey
Comment options

Comment options

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

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