Skip to content

[CodeGen] Avoid repeated hash lookups (NFC) #128126

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

Conversation

kazutakahirata
Copy link
Contributor

This patch eliminates repeated hash lookups at three levels:

  • RegToSlotIdx of DenseMap
  • Reloads of DenseMap
  • Reloads[MBB] of SmallSet

This patch eliminates repeated hash lookups at three levels:

- RegToSlotIdx  of DenseMap
- Reloads       of DenseMap
- Reloads[MBB]  of SmallSet
@kazutakahirata kazutakahirata requested a review from nikic February 21, 2025 05:05
@kazutakahirata kazutakahirata merged commit b044350 into llvm:main Feb 21, 2025
12 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_001_repeated_hash_lookups_llvm_CodeGen branch February 21, 2025 19:07
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