-
Notifications
You must be signed in to change notification settings - Fork 53
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
Cache ir_utils::allTvs
as part of Fusion
#2873
Conversation
This caches `ir_utils::allTvs(fusion)` as `fusion->allTvs()`. The cache is automatically invalidated whenever the TV graph topology changes; this mechanism is the same one used to recompute `Expr` uses automatically.
!build |
This reverts commit f89eeee.
Topo sort test was unhappy because it uses an unregistered expression and this approach triggers a traversal that needs dispatch. trying again. |
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.
Do we still need to keep ir_utils::allTvs
?
!build |
!build |
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.
LGTM
!build |
@naoyam let's hold off on merging this. I replaced all the uses of allTvs in the codebase and am now getting a segfault. There must still be something wrong with it. |
I'll cleanup in a follow up. |
!build |
Follow up to #2873 removes all uses of the ir_utils variant in favor of the Fusion variant. --------- Co-authored-by: Jacob Hinkle <[email protected]>
This caches
ir_utils::allTvs(fusion)
asfusion->allTvs()
. The cache is automatically invalidated whenever the TV graph topology changes; this mechanism is the same one used to recomputeExpr
uses automatically.