Skip to content

Fix crash in optimizeSelect with non-concrete arm types#8817

Merged
tlively merged 1 commit into
mainfrom
fix-unreachable-select-opt
Jun 9, 2026
Merged

Fix crash in optimizeSelect with non-concrete arm types#8817
tlively merged 1 commit into
mainfrom
fix-unreachable-select-opt

Conversation

@tlively

@tlively tlively commented Jun 9, 2026

Copy link
Copy Markdown
Member

Avoid creating a scratch local of non-concrete type (like unreachable) when we cannot reorder. We generally do not optimize unreachable selects in the first place, but it is still possible that we observe unreachable arms when optimizing because other optimizations might have made the arms unreachable.

TAG=agy

Avoid creating a scratch local of non-concrete type (like unreachable) when we cannot reorder. We generally do not optimize unreachable selects in the first place, but it is still possible that we observe unreachable arms when optimizing because other optimizations might have made the arms unreachable.

TAG=agy
@tlively tlively requested a review from a team as a code owner June 9, 2026 00:17
@tlively tlively requested review from kripken and removed request for a team June 9, 2026 00:17
@tlively tlively enabled auto-merge (squash) June 9, 2026 00:18
@tlively tlively merged commit 2227ff0 into main Jun 9, 2026
16 checks passed
@tlively tlively deleted the fix-unreachable-select-opt branch June 9, 2026 15:28
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