-
Notifications
You must be signed in to change notification settings - Fork 77
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: use InsertPoint for block inlining #2311
Conversation
@@ -147,7 +147,6 @@ def test_inline_block_at_end(): | |||
"builtin.module"() ({ | |||
%0 = "test.op"() : () -> !test.type<"int"> | |||
"test.op"() ({ | |||
^0: |
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.
inlined source blocks are now consistently deleted when inlined into another block
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.
Makes sense to me, that's actually what MLIR does as well!
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2311 +/- ##
==========================================
+ Coverage 89.54% 89.56% +0.02%
==========================================
Files 332 332
Lines 39604 39596 -8
Branches 5916 5910 -6
==========================================
+ Hits 35464 35466 +2
+ Misses 3277 3270 -7
+ Partials 863 860 -3 ☔ View full report in Codecov by Sentry. |
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.
Cool
@@ -147,7 +147,6 @@ def test_inline_block_at_end(): | |||
"builtin.module"() ({ | |||
%0 = "test.op"() : () -> !test.type<"int"> | |||
"test.op"() ({ | |||
^0: |
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.
Makes sense to me, that's actually what MLIR does as well!
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.
Very nice stuff!
Unifies implementations