Skip to content

[AliasAnalysis] Improve builtin's effects to depend on escapingness. #70997

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
Jan 19, 2024

Conversation

nate-chandler
Copy link
Contributor

Mostly restore the behavior of getMemoryEffectsFn on builtins other than once and onceWithContext to before 8a8a895 but keeping the improvement to return Instruction.memoryEffects in the face of escaping.

@nate-chandler
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

Implementation lgtm, thanks!
Can you add a positive and negative test in test/SILOptimizer/mem-behavior.sil?

Mostly restore the behavior of getMemoryEffectsFn on builtins other than
`once` and `onceWithContext` to before
8a8a895 but keeping the improvement to
return `Instruction.memoryEffects` in the face of escaping.
@nate-chandler nate-chandler force-pushed the alias-analysis-builtin branch from 7956ff2 to 75ccbae Compare January 19, 2024 15:16
@nate-chandler
Copy link
Contributor Author

Added!

@nate-chandler nate-chandler marked this pull request as ready for review January 19, 2024 15:17
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

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

lgtm!

@nate-chandler nate-chandler merged commit 94f3b22 into swiftlang:main Jan 19, 2024
@nate-chandler nate-chandler deleted the alias-analysis-builtin branch January 19, 2024 20:38
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