-
Notifications
You must be signed in to change notification settings - Fork 79
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
transformations: (arith-to-varith) Support more cases #3330
Conversation
@@ -209,6 +200,7 @@ def apply(self, ctx: MLContext, op: builtin.ModuleOp) -> None: | |||
MergeVarithOpsPattern(), | |||
] | |||
), | |||
walk_reverse=True, |
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 is needed to ensure all ops are folded away.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3330 +/- ##
==========================================
- Coverage 90.04% 90.04% -0.01%
==========================================
Files 446 446
Lines 56330 56327 -3
Branches 5405 5403 -2
==========================================
- Hits 50720 50717 -3
Misses 4183 4183
Partials 1427 1427 ☔ 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.
This looks good from my side.
In some edge-cases a single arith op was not folded away. This should be fixed now. --------- Co-authored-by: n-io <n-io@users.noreply.github.com>
In some edge-cases a single arith op was not folded away. This should be fixed now.