Skip to content

[codegen 1.5] Channel multiplexing fix: avoid scrambling valid conditions#4274

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

[codegen 1.5] Channel multiplexing fix: avoid scrambling valid conditions#4274
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_916197794

Conversation

@copybara-service
Copy link
Copy Markdown

[codegen 1.5] Channel multiplexing fix: avoid scrambling valid conditions

The logic for connecting the channel's valid and data signals has been moved outside the loop over individual send operations. This allows for a less wasteful/repetitive process for combining send operations - and fixes a bug in multiplexing channels!

Previously, the valid_conditions vector was being repeatedly reversed in place before the next was added to the list, populating conditions in the order "...ECABDF..." and causing the wrong data to be sent!

While we're at it, we also make sure the SourceInfo for the combined nodes is now an aggregate of all of the component Sends.

…ions

The logic for connecting the channel's valid and data signals has been moved outside the loop over individual send operations. This allows for a less wasteful/repetitive process for combining send operations - and fixes a bug in multiplexing channels!

Previously, the `valid_conditions` vector was being repeatedly reversed in place before the next was added to the list, populating conditions in the order "...ECABDF..." and causing the wrong data to be sent!

While we're at it, we also make sure the SourceInfo for the combined nodes is now an aggregate of all of the component Sends.

PiperOrigin-RevId: 916197794
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