Skip to content
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

[6.1][SILOptimizer] Prevent devirtualization of call to distributed witness requirements #80375

Open
wants to merge 1 commit into
base: release/6.1
Choose a base branch
from

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 28, 2025

Cherry-pick of #80373


(cherry picked from commit 0415b40)

@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.1-dev labels Mar 28, 2025
@xedin xedin requested a review from hborla March 28, 2025 19:00
@xedin xedin requested a review from a team as a code owner March 28, 2025 19:00
@xedin
Copy link
Contributor Author

xedin commented Mar 28, 2025

@swift-ci please test

@xedin xedin force-pushed the rdar-146101172-narrow-6.1 branch from f9e7dda to 640e0cc Compare March 28, 2025 20:45
@xedin
Copy link
Contributor Author

xedin commented Mar 28, 2025

@swift-ci please test

@xedin xedin force-pushed the rdar-146101172-narrow-6.1 branch from 640e0cc to 07f4bfd Compare March 28, 2025 23:34
@xedin
Copy link
Contributor Author

xedin commented Mar 28, 2025

@swift-ci please test

@xedin xedin force-pushed the rdar-146101172-narrow-6.1 branch from 07f4bfd to ba5103d Compare March 28, 2025 23:38
@xedin
Copy link
Contributor Author

xedin commented Mar 28, 2025

@swift-ci please test

…s requirements

This is a narrow fix, we are going to work on fixing this properly
and allowing both devirtualization and specialization for distributed
requirement witnesses.

Anything that uses an ad-hoc serialization requirement scheme cannot
be devirtualized because that would result in loss of ad-hoc conformance
in new substitution map.

Resolves: swiftlang#79318
Resolves: rdar://146101172
(cherry picked from commit 0415b40)
@xedin xedin force-pushed the rdar-146101172-narrow-6.1 branch from ba5103d to 6c2be2b Compare March 30, 2025 02:27
@xedin
Copy link
Contributor Author

xedin commented Mar 30, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Mar 30, 2025

@swift-ci please test macOS platform

2 similar comments
@xedin
Copy link
Contributor Author

xedin commented Mar 30, 2025

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Mar 31, 2025

@swift-ci please test macOS platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.1-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant