Skip to content

[🍒 stable/20240723] Remove redundant symbol lookups in IRExecutionUnit::FindInSymbols #9444

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

Merged

Conversation

DmT021
Copy link

@DmT021 DmT021 commented Oct 18, 2024

Cherry-pick llvm#102835

When we search for a symbol, we first check if it is in the module_sp of the current SymbolContext, and if not, we check in the target's modules. However, the target's ModuleList also includes the already checked module, which leads to a redundant search in it.

When we search for a symbol, we first check if it is in the module_sp of
the current SymbolContext, and if not, we check in the target's modules.
However, the target's ModuleList also includes the already checked
module, which leads to a redundant search in it.
@DmT021 DmT021 marked this pull request as ready for review October 18, 2024 10:32
@DmT021 DmT021 requested a review from JDevlieghere as a code owner October 18, 2024 10:32
@DmT021
Copy link
Author

DmT021 commented Oct 18, 2024

@augusto2112 PTAL

@augusto2112
Copy link

@swift-ci test

@augusto2112
Copy link

@swift-ci test

@augusto2112 augusto2112 merged commit 16fdc84 into swiftlang:stable/20240723 Oct 22, 2024
3 checks passed
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.

2 participants