Skip to content

Add UniquifyAndMergeReturnsPass to merge return copies into existing fragments.#1256

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

Add UniquifyAndMergeReturnsPass to merge return copies into existing fragments.#1256
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_907624587

Conversation

@copybara-service
Copy link
Copy Markdown

Add UniquifyAndMergeReturnsPass to merge return copies into existing fragments.

Instead of creating intermediate inferred fragments that need subsequent
cleanup passes, this new pass directly adds extra results/operands to
existing fragments, producing the same result as running uniquify +
merge-inferred-fragments (producer/consumer + sideways) in a single step.

The export pipeline is updated to use this new pass. The existing
transfer-based UniquifyFunctionInputsOutputsPass is unaffected.

…fragments.

Instead of creating intermediate inferred fragments that need subsequent
cleanup passes, this new pass directly adds extra results/operands to
existing fragments, producing the same result as running uniquify +
merge-inferred-fragments (producer/consumer + sideways) in a single step.

The export pipeline is updated to use this new pass. The existing
transfer-based UniquifyFunctionInputsOutputsPass is unaffected.

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