-
Notifications
You must be signed in to change notification settings - Fork 792
[NFC][SYCL][Graph] Avoid unnecessary shared_ptr
in duplicateNodes
#19372
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: sycl
Are you sure you want to change the base?
Conversation
Changes are mostly local to the routine, but I've updated `MIDCache` to use raw `node_impl *` while on it too because `duplicateNodes` accounts for 40% of the places that need updates after the change of the `MIDCache`.
4d0836d
to
d42db5e
Compare
Please avoid looking at the first commit in this PR, it's being reviewed separately at #19351. |
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. Just a general question: could any of the derefs be made on a nullptr? Should we check for that or add asserts?
No to both. I'm not adding any new dereferences, only making APIs express pre-existing requirements/guarantees clearer. |
Changes are mostly local to the routine, but I've updated
MIDCache
to use rawnode_impl *
while on it too becauseduplicateNodes
accounts for 40% of the places that need updates after the change of theMIDCache
.