Skip to content

Inline producer-consumer merging into UniquifyFunctionInputsOutputsPass.#1339

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

Inline producer-consumer merging into UniquifyFunctionInputsOutputsPass.#1339
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_914817464

Conversation

@copybara-service
Copy link
Copy Markdown

Inline producer-consumer merging into UniquifyFunctionInputsOutputsPass.

Instead of creating intermediate uniquify fragments that require a subsequent
MergeInferredFragmentsPass, the uniquify pass now:

  • Extends producer FragmentOps in-place with extra results for duplicated
    return values (no new fragments, no merge needed).
  • Creates identity FragmentOps only for block arguments (grouped by mesh).

This eliminates the createMergeInferredFragmentsPass() call from the export
pipeline, reducing compilation overhead.

Instead of creating intermediate uniquify fragments that require a subsequent
MergeInferredFragmentsPass, the uniquify pass now:

- Extends producer FragmentOps in-place with extra results for duplicated
  return values (no new fragments, no merge needed).
- Creates identity FragmentOps only for block arguments (grouped by mesh).

This eliminates the createMergeInferredFragmentsPass() call from the export
pipeline, reducing compilation overhead.

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