-
Notifications
You must be signed in to change notification settings - Fork 88
Expose the should_fold option to optimize() #2594
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
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.
Pull Request Overview
This PR exposes the should_fold parameter to the optimize_ir() function, allowing users to provide custom folding logic during optimization. The change adds a new optional parameter that gets passed through to the constant folding pass.
- Adds
should_foldparameter tooptimize_ir()function signature - Updates function documentation to describe the new parameter
- Passes the parameter through to the constant folding optimization pass
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2594 +/- ##
=======================================
Coverage 69.93% 69.94%
=======================================
Files 223 223
Lines 26320 26321 +1
Branches 2604 2604
=======================================
+ Hits 18408 18409 +1
Misses 7001 7001
Partials 911 911 ☔ View full report in Codecov by Sentry. |
No description provided.