-
Notifications
You must be signed in to change notification settings - Fork 246
compiler: fix buffering with multiple conditions #2826
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
base: main
Are you sure you want to change the base?
Conversation
19bfb04 to
e5dc2af
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2826 +/- ##
=======================================
Coverage 78.98% 78.99%
=======================================
Files 248 248
Lines 50822 50833 +11
Branches 4391 4393 +2
=======================================
+ Hits 40141 40154 +13
Misses 9879 9879
+ Partials 802 800 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| if c.scope.reads.get(self.f): | ||
| return c | ||
| return None | ||
| if c.scope.reads.get(self.f) and c.guards not in first_c: |
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.
this looks very fragile at first glance
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.
How so? This just split the first read and last write per guard so that each different condition is respected
| if c.scope.writes.get(self.f): | ||
| return c | ||
| return None | ||
| if c.scope.writes.get(self.f) and c.guards not in last_c: |
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.
same as above
e5dc2af to
93a78f7
Compare
Test in corresponding pro PR