Skip to content

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

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

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Jun 6, 2025

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.

This is a complementary fix for #82034

rdar://152665294

…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 review from xedin and slavapestov and removed request for rjmccall and AnthonyLatsis June 6, 2025 18:17
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein
Copy link
Contributor Author

@swift-ci test macos

1 similar comment
@eeckstein
Copy link
Contributor Author

@swift-ci test macos

@eeckstein eeckstein merged commit e79c939 into swiftlang:main Jun 9, 2025
5 checks passed
@eeckstein eeckstein deleted the fix-mpo2 branch June 9, 2025 06:17
Copy link
Contributor

@xedin xedin left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

2 participants