Skip to content

[6.2] MandatoryPerformanceOptimizations: only set the [perf_constraint] flag for callees of performance constraint functions #82141

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 11, 2025

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Jun 10, 2025

…lag for callees of performance constraint functions

It used to also set it for functions which are referenced from a global with a const/section attribute - even if not performance attribute was present in the whole module. This is unnecessary and can lead to worse code generation.

rdar://152665294
@eeckstein eeckstein requested a review from a team as a code owner June 10, 2025 09:41
@eeckstein eeckstein requested a review from xedin June 10, 2025 09:43
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 9df7217 into swiftlang:release/6.2 Jun 11, 2025
5 checks passed
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.

3 participants