-
Notifications
You must be signed in to change notification settings - Fork 80
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
core: Simplify the pattern rewriter #1910
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1910 +/- ##
==========================================
+ Coverage 89.94% 89.99% +0.05%
==========================================
Files 287 287
Lines 35779 35664 -115
Branches 5266 5242 -24
==========================================
- Hits 32181 32097 -84
+ Misses 2838 2816 -22
+ Partials 760 751 -9 ☔ View full report in Codecov by Sentry. |
6776572
to
3afbc2d
Compare
e02f606
to
06ae319
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beautiful
ba38908
to
c10b00c
Compare
Could you rebase this? I think that would make it more reviewable :) |
06ae319
to
92e0687
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that actually looks like a simplification 😉
I still wonder if no downstream users are affected (in particular in the Chocopy world), but if we can make sure it's fine, I think this is a good change 👍
b234f14
to
45140fc
Compare
92e0687
to
21a2af8
Compare
Now that the pattern rewriter use the worklist, it is not necessary to keep track of the inserted operations before/after
the matched operation.
We can thus remove all these checks.