Skip to content
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

Use lighter weight map accesses #288

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Use lighter weight map accesses #288

merged 1 commit into from
Nov 25, 2024

Conversation

VoxSciurorum
Copy link
Contributor

Try not to look up a map entry more than once in the same function. Avoid operator[], which creates a new map entry, when a lookup is sufficient.

This is tested using the llvm-lit tests and one test program.

@neboat neboat merged commit 5aa7883 into dev/18.x Nov 25, 2024
7 checks passed
@VoxSciurorum VoxSciurorum deleted the jfc/maps branch December 2, 2024 01:25
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