-
Couldn't load subscription status.
- Fork 10.6k
[Performance Hints] Disable performance hints if typechecker can skip function bodies #85014
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
base: main
Are you sure you want to change the base?
[Performance Hints] Disable performance hints if typechecker can skip function bodies #85014
Conversation
|
@swift-ci Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a simple lit test which passes in a primary source file and a secondary source file and ensure no diagnostics are emitted for the secondary?
d777ae8 to
dedba4d
Compare
|
@swift-ci Test |
dedba4d to
63246b9
Compare
|
@swift-ci Test |
|
@swift-ci smoke test |
…me function bodies If `SkipFunctionBodies` is not `None`, functions that are inlinable or not used for the result are not typechecked. The absence of type information crashes the performance hint analyzer. This change prevents the analyzer from running in these cases.
63246b9 to
dbe97e9
Compare
|
@swift-ci test |
If
SkipFunctionBodiesis notNone, functions that are inlinable or not used for the result are not typechecked. The absence of type information crashes the performance hint analyzer. This change prevents the analyzer from running in these cases.