-
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
dialects: Add NoMemoryEffects to memref and snitch_runtime dialect ops #2706
Conversation
27bbb7b
to
04e0695
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.
I have doubts regarding the snitch ones, but giving approval if given my comments it's still considered right, as I don't know the dialect's contract or semantics.
@PapyChacal any idea what's wrong in the memref canonicalization test? It seems fishy to me. |
What sounds fishy to you? You rightfully marked |
I think your eyes deceive you: I added a use to the memref, and so now we basically have:
And |
fecc613
to
8b22eb0
Compare
Ahh, I figured it out! The memref canonicalization pass did not remove the old cast, it basically transformed the IR to:
and |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2706 +/- ##
=======================================
Coverage 89.86% 89.86%
=======================================
Files 367 367
Lines 47401 47412 +11
Branches 7223 7223
=======================================
+ Hits 42598 42608 +10
Misses 3694 3694
- Partials 1109 1110 +1 ☔ View full report in Codecov by Sentry. |
This PR adds
NoMemoryEffects
trait to ops from the memref and snitch_runtime dialect that should have them.