Skip to content

[CodeGen] Use SmallVector for FixedStackPSVs #91760

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 2 commits into from
May 14, 2024

Conversation

aengelke
Copy link
Contributor

Frame indices are dense and consecutive, so use a vector instead of a std::map. Due to possibly negative frame indices, use zig-zag encoding. IndexedMap was not usable, as it attempted to copy the null value, which is not possible with a std::unique_ptr.

This is just a minor performance improvement, but a low-hanging fruit.

Frame indices are dense and consecutive, so use a vector instead of a
std::map. Due to possible negative frame indices, use zig-zag encoding.
IndexedMap was not usable, as it attempted to copy the null value, which
is not possible with a std::unique_ptr.

This is just a minor performance improvement, but a low-hanging fruit.
@aengelke aengelke merged commit e6d3a42 into llvm:main May 14, 2024
3 of 4 checks passed
@aengelke aengelke deleted the perf/psv-densemap branch May 14, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants