Skip to content

[codegen 1.5] Preserve earliest stage in MergeRegistersPass on ScheduledBlocks. - #5554

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1029279414
Draft

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1029279414

Conversation

@copybara-service

Copy link
Copy Markdown

[codegen 1.5] Preserve earliest stage in MergeRegistersPass on ScheduledBlocks.

When MergeRegistersPass merged a duplicate register into an authoritative register inside a ScheduledBlock, auth_read previously remained in its original stage even when dupe_read was unstaged or scheduled in an earlier stage, leaving upstream or block-level consumers reading a downstream-staged node.

Unstage auth_read when dupe_read is unstaged, and move auth_read to dupe_stage whenever dupe_stage < auth_stage so merged register reads remain valid across all consumers.

…ledBlocks.

When `MergeRegistersPass` merged a duplicate register into an authoritative register inside a `ScheduledBlock`, `auth_read` previously remained in its original stage even when `dupe_read` was unstaged or scheduled in an earlier stage, leaving upstream or block-level consumers reading a downstream-staged node.

Unstage `auth_read` when `dupe_read` is unstaged, and move `auth_read` to `dupe_stage` whenever `dupe_stage < auth_stage` so merged register reads remain valid across all consumers.

PiperOrigin-RevId: 1029279414

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