Skip to content

[mpmd] Prefer producer fragment when merging inferred fragments to avoid false dependencies. - #1393

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

[mpmd] Prefer producer fragment when merging inferred fragments to avoid false dependencies.#1393
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_926295904

Conversation

@copybara-service

Copy link
Copy Markdown

[mpmd] Prefer producer fragment when merging inferred fragments to avoid false dependencies.

Add FindLatestProducerFragmentOnMesh and use it as the preferred merge target in TryMergeWithExistingFragment. When an inferred fragment's operand is produced by a same-mesh FragmentOp, merging into that producer avoids introducing false dependencies on bystander fragments. Falls back to FindLastFragmentOnMesh (nearest preceding) when no producer fragment exists.

…oid false dependencies.

Add FindLatestProducerFragmentOnMesh and use it as the preferred merge target in TryMergeWithExistingFragment. When an inferred fragment's operand is produced by a same-mesh FragmentOp, merging into that producer avoids introducing false dependencies on bystander fragments. Falls back to FindLastFragmentOnMesh (nearest preceding) when no producer fragment exists.

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