Skip to content

Handle mark_dependence_addr in LoadableByAddress - #91413

Open
meg-gupta wants to merge 1 commit into
swiftlang:mainfrom
meg-gupta:fixlargeloadable
Open

Handle mark_dependence_addr in LoadableByAddress#91413
meg-gupta wants to merge 1 commit into
swiftlang:mainfrom
meg-gupta:fixlargeloadable

Conversation

@meg-gupta

@meg-gupta meg-gupta commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

RewriteUser implements visitMarkDependenceInst for the value form of the instruction but had no visitor for the address form, so a mark_dependence_addr whose base is a large loadable value fell through to visitSILInstruction: a "Unimplemented user" fatal error on an asserts build.

Rewrite the instruction with the address assigned to its base instead.

Encountered while reproducing rdar://184166791

RewriteUser implements visitMarkDependenceInst for the value form of the
instruction but had no visitor for the address form, so a
mark_dependence_addr whose base is a large loadable value fell through to
visitSILInstruction: a "Unimplemented user" fatal error on an asserts
build.

Rewrite the instruction with the address assigned to its base instead.

Encountered while reproducing rdar://172749676
@meg-gupta
meg-gupta requested a review from rjmccall as a code owner August 12, 2026 04:56
@meg-gupta

Copy link
Copy Markdown
Contributor Author

@swift-ci test

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.

1 participant