Skip to content

[6.2] LetPropertyLowering: remove redundant phis after ssa-update #82808

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

eeckstein
Copy link
Contributor

  • Explanation: Fixes a SIL ownership verifier error. This fixes an old bug, which is now surfaced because we do ownership verification also in a non-assert compiler. The fix is to run a peephole transformation in the LetPropertyLowering pass, as we do in LoopRotate, where we had the same problem.
  • Risk: Low. It's a simple fix which runs a peephole transformation which already runs (and is tested in) LoopRotate.
  • Testing: Tested by lit tests.
  • Issue: rdar://153229472
  • Reviewer: @nate-chandler
  • Main branch PR: LetPropertyLowering: remove redundant phis after ssa-update #82798

eeckstein added 2 commits July 4, 2025 20:37
This is needed after running the SSAUpdater, because the updater can insert unnecessary phis in the middle of the original liverange of a value.

Fixes an ownership error.
rdar://153229472
@eeckstein eeckstein requested a review from a team as a code owner July 4, 2025 18:44
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein enabled auto-merge July 4, 2025 18:45
@eeckstein eeckstein merged commit d48956c into swiftlang:release/6.2 Jul 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants