-
Notifications
You must be signed in to change notification settings - Fork 229
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
compiler: Misc codegen enhancements #2300
Conversation
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.
Looks fine,nothing major just one comment
# Perform some basic simplifications at least | ||
args = [i for i in args if i != 1] | ||
if any(i == 0 for i in args): | ||
return S.Zero |
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.
Can probably do S.One
and S.negativeOne
as well that have a bunch of special handling in sympy
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2300 +/- ##
==========================================
- Coverage 86.70% 86.69% -0.01%
==========================================
Files 229 229
Lines 42895 42928 +33
Branches 7952 7958 +6
==========================================
+ Hits 37190 37216 +26
- Misses 5022 5027 +5
- Partials 683 685 +2 ☔ View full report in Codecov by Sentry. |
No description provided.