swift
Don't delete allocations in DCE
#73852
Merged

Don't delete allocations in DCE #73852

meg-gupta merged 1 commit into swiftlang:main from meg-gupta:fixdce
meg-gupta
meg-gupta1 year ago👍 1

DCE was deleting an allocation with only destroy_value users. This isn't correct when the deinit can have a side effect. This should be handled in DeadObjectElimination which does additional analysis on deinit to determine if a dead allocation can be eliminated.

meg-gupta meg-gupta requested a review from atrick atrick 1 year ago
meg-gupta
meg-gupta1 year ago

Fixes issue reported in #73768

meg-gupta
meg-gupta1 year ago
atrick
atrick approved these changes on 2024-05-23
atrick1 year ago👍 1

LGTM. Could you add a comment and CHECK lines to the test?

meg-gupta meg-gupta force pushed from 7f56d283 to 90ed6da7 1 year ago
meg-gupta
meg-gupta1 year ago

@swift-ci smoke test

meg-gupta Don't delete allocations in DCE
505d84fe
meg-gupta meg-gupta force pushed from 90ed6da7 to 505d84fe 1 year ago
meg-gupta
meg-gupta1 year ago

@swift-ci smoke test

meg-gupta meg-gupta enabled auto-merge 1 year ago
meg-gupta meg-gupta merged 8b4469be into main 1 year ago
turbolent
turbolent1 year ago

Thank you for the quick fix @meg-gupta 🙏

meg-gupta meg-gupta deleted the fixdce branch 348 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone