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

[CFIInstrInserter] Use number of supported registers (NFC) #71797

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Nov 9, 2023

This makes use of the more accurate register number introduced in PR #70222 to avoid CFI calculations for unsupported registers.

This has basically no impact right now, but results in the following compile-time improvement when applied on top of #70958: http://llvm-compile-time-tracker.com/compare.php?from=0310d2a00e16d94db50cd811a4013d9f0d4f3317&to=67978ffd8bae44581f23dc7bde6fbf8ab1662d18&stat=instructions:u

The reason is that the extra registers that PR adds push the BitVector out of the SmallVector space, which results in an outsized impact. (This does make me wonder whether BitVector should accept an N template parameter to allow using a larger SmallVector...)

This makes use of the more accurate register number introduced in
PR llvm#70222 to avoid CFI calculations for unsupported registers.
Copy link
Contributor

@phoebewang phoebewang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@nikic nikic merged commit f671584 into llvm:main Nov 9, 2023
3 checks passed
Copy link
Contributor

@KanRobert KanRobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the change!

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.

None yet

3 participants