Skip to content

[DAE2] Preserve unreachability of noreturn calls - #9416

Open
tlively wants to merge 1 commit into
dae2-skip-redundant-passesfrom
dae2-noreturn
Open

tlively wants to merge 1 commit into
dae2-skip-redundant-passesfrom
dae2-noreturn

Conversation

@tlively

@tlively tlively commented Nov 21, 2026

Copy link
Copy Markdown
Member

When DAE2 removes an unused concrete result from a call to a function that never returns, changing the call type to none drops the unreachability information that downstream passes like GUFA rely on. Track neverReturns for direct functions and indirect call signature trees, append an unreachable after calls whose removed results never return, and let Collector infer unreachable types for multi-element blocks.

When DAE2 removes an unused concrete result from a call to a function that never returns, changing the call type to none drops the unreachability information that downstream passes like GUFA rely on. Track neverReturns for direct functions and indirect call signature trees, append an unreachable after calls whose removed results never return, and let Collector infer unreachable types for multi-element blocks.
@github-actions
github-actions Bot requested a review from aheejin November 21, 2026 03:41

This branch has not been deployed

No deployments
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