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

[BOLT] Fix enumeration of secondary entry points #86848

Merged

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented Mar 27, 2024

Make them start with 1 instead of 0 (reserved for primary entry point).

Test Plan:

bin/llvm-lit -a tools/bolt/test/X86/yaml-secondary-entry-discriminator.s

Created using spr 1.3.4
Created using spr 1.3.4
@aaupov aaupov marked this pull request as ready for review March 27, 2024 19:25
Copy link
Contributor

@maksfb maksfb left a comment

Choose a reason for hiding this comment

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

Thanks for the fix.

@aaupov aaupov merged commit d8fe2e4 into main Mar 27, 2024
6 checks passed
@aaupov aaupov deleted the users/aaupov/spr/bolt-fix-enumeration-of-secondary-entry-points branch March 27, 2024 22:23
aaupov added a commit that referenced this pull request Mar 27, 2024
Indirect call handling missed setting an `EntryDiscriminator` while it's
set for direct calls and tail calls.

Improve YAML profile accuracy by unifying the destination setting
between direct and indirect calls into `setCSIDestination` method.

Depends on: #86848

Test Plan: Updated bolt/test/X86/yaml-secondary-entry-discriminator.s

Reviewers: ayermolo, maksfb, rafaelauler

Reviewed By: maksfb

Pull Request: #82128
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

2 participants