Skip to content

[SILOptimizer] Handle the mark_dependence chain when eliminating copies in ClosureLifetimeFixup #74593

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 21, 2024

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Jun 20, 2024

When we are in ClosureLifetimeFixup, we emit mark_dependence for non-trivial address operands, but we do so in a chaining fashion like:

%md = mark_dependence %pai on %0
%md2 = mark_dependence %md on %1

and the move only copy eliminator here wasn't handling this case. Let's handle it!

Resolves: rdar://130205636

@Azoy Azoy requested review from jckarter and eeckstein June 20, 2024 21:46
@Azoy
Copy link
Contributor Author

Azoy commented Jun 20, 2024

@swift-ci please test

1 similar comment
@Azoy
Copy link
Contributor Author

Azoy commented Jun 21, 2024

@swift-ci please test

@shahmishal shahmishal merged commit 790d4da into swiftlang:main Jun 21, 2024
3 checks passed
@Azoy Azoy deleted the why-are-we-copying branch June 21, 2024 22:45
Azoy pushed a commit to Azoy/swift that referenced this pull request Jun 25, 2024
[SILOptimizer] Handle the mark_dependence chain when eliminating copies in ClosureLifetimeFixup
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