Skip to content

[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

Open
wants to merge 3 commits into
base: sycl
Choose a base branch
from

Conversation

aelovikov-intel
Copy link
Contributor

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.

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`.
@aelovikov-intel
Copy link
Contributor Author

Please avoid looking at the first commit in this PR, it's being reviewed separately at #19351.

@aelovikov-intel aelovikov-intel marked this pull request as ready for review July 9, 2025 17:34
@aelovikov-intel aelovikov-intel requested review from a team as code owners July 9, 2025 17:34
Copy link
Contributor

@maarquitos14 maarquitos14 left a 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?

@aelovikov-intel
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants