Skip to content

[6.0] Lost variables statistics + Fix -Onone #73398

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

Conversation

Snowy1803
Copy link
Member

Snowy1803 added 6 commits May 2, 2024 12:58
LoadableByAddress was losing debug info, including at -Onone.
When converting a load-store pair to a copy_addr, the debug info
attached to the load was not salvaged.
Additionally, the wrong scope was being attached to other debug
values.

(cherry picked from commit 644509e)
AllocStackHoisting was losing debug info, including at -Onone.
When two alloc_stacks of the same type are merged, one of them
would lose their debug variable. It is now salvaged, with an added
debug_value.

This case was previously only handled for noncopyable types, it is
now done in all cases.

(cherry picked from commit c02f663)
@Snowy1803 Snowy1803 requested a review from a team as a code owner May 2, 2024 20:06
@Snowy1803
Copy link
Member Author

@swift-ci please test

@adrian-prantl adrian-prantl merged commit f0f8e9b into swiftlang:release/6.0 May 6, 2024
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