Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-101525: Check whether to skip functions with computed gotos during BOLT runs#140250

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
stratakis wants to merge2 commits intopython:main
base:main
Choose a base branch
Loading
fromstratakis:llvm_bolt_gotos_2110

Conversation

@stratakis
Copy link
Contributor

@stratakisstratakis commentedOct 17, 2025
edited by bedevere-appbot
Loading

With LLVM >= 21.1.0 BOLT can handle computed gotos in PIC compiled code.

Check for the LLVM version during configure to determine if we can safely skip those functions.

This PR builds on top of#139840

…ed gotos, to BOLT skip listWhen building with --with-lto, --enable-bolt and --enable-shared, GCC createsoptimized function clones with the suffix .lto_priv.0.The sre_ucs*_match functions use computed gotos, which BOLT cannotoptimize, so their .lto_priv.0 clones must be skipped as well.Static builds and Clang's LTO implementation are not affected.
…during BOLT runsWith LLVM >= 21.1.0 BOLT can handle computed gotos in PIC compiled code.Check for the LLVM version during configure to determine if we can safely skip those functions.
@stratakis
Copy link
ContributorAuthor

stratakis commentedOct 20, 2025
edited
Loading

With GCC when the -pack-relative-relocs linker flag is used, BOLT fails again on the same functions.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@erlend-aaslanderlend-aaslandAwaiting requested review from erlend-aaslanderlend-aasland is a code owner

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

@emmatypingemmatypingAwaiting requested review from emmatypingemmatyping is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@stratakis

[8]ページ先頭

©2009-2025 Movatter.jp