Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ObjectFifo] Combine Logical ObjectFifos for reuse #755

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Abhishek-Varma
Copy link
Contributor

This PR adds a new pass iree-amdaie-combine-logical-objectfifos-for-connection-reuse (can rename) which is the follow-up pass for iree-amdaie-split-logical-objectfifos-for-connection-reuse.

It contains lot of refactor along with the pass logic itself. Since it's a non-trivial pass, I've tried adding asserts/checks (to the extend I could) - currently starting off with base lit test.

Aims to address point 4 in #644.

Copy link
Collaborator

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It contains lot of refactor along with the pass logic itself.

Once you're done, it might be useful to split this into two PR.

// Step 3. PICK the CoreOps associated with the 1:1 L2->L1.
// For the first Core op we'll insert Read at the end. It doesn't matter
// for now so we're gonna insert it right before amdaie.end op.
CoreOp firstCoreOp = fetchUniqueCoreOp(newFirstL2ToL1DmaOp);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if there are more than 2 target core ops per DMA?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm already asserting on that here.

@Abhishek-Varma
Copy link
Contributor Author

Closing this as two separate PRs #759 and #760 were raised instead.

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.

2 participants