Skip to content

[NFC][MachineLICM] Use SmallDenseSet instead of SmallSet #95201

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
merged 1 commit into from
Jun 12, 2024

Conversation

Pierre-vh
Copy link
Contributor

All values are small so no reason to ever use SmallSet really. In large programs we'll end up using std::set which is extremely slow compared to DenseSet. This brings a decent speedup to the pass in large programs.

All values are small so no reason to ever use SmallSet really. In large programs we'll end up using std::set which is extremely slow compared to DenseSet. This brings a decent speedup to the pass in large programs.
@Pierre-vh Pierre-vh requested review from jayfoad and arsenm June 12, 2024 07:09
@Pierre-vh Pierre-vh merged commit 864981d into llvm:main Jun 12, 2024
6 of 7 checks passed
@Pierre-vh Pierre-vh deleted the perf/machinelicm-datastructures branch June 12, 2024 09:34
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