Skip to content

[DebugInfo] Fix PhiExpansion losing debug info #73404

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
May 6, 2024

Conversation

Snowy1803
Copy link
Member

When replacing a struct with its field, it now emits a debug_value with a fragment, instead of dropping the debug_value.

PhiExpansion was the 6th SIL pass losing most debug variables in the standard library (6936 -> 0 variables lost).

It only salvages the fragment kept as the new phi node — it might be worth to "move" the debug_value to the predecessors to keep the whole value, but I don't think it would have a real impact.

When replacing a struct with its field, it now emits a debug_value
with a fragment, instead of dropping the debug_value.
@Snowy1803 Snowy1803 marked this pull request as ready for review May 3, 2024 21:46
@Snowy1803 Snowy1803 requested a review from adrian-prantl as a code owner May 3, 2024 21:46
@Snowy1803
Copy link
Member Author

@swift-ci please test

@adrian-prantl
Copy link
Contributor

@swift-ci test windows

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