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

[TIR][SW] ensure non-overlap pipeline epilogue with prologue #17579

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wrongtest-intellif
Copy link
Contributor

The MR try fix a corner case in software pipeline injection.

When the loop num is too few to fill the pipeline main body, the setup phase and draining phase's loop indices should not overlap. Currently the decomposition is

  • prologue: [0, num_stage - 1)
  • body: [num_stage - 1, loop_num)
  • epilogue: [loop_num, loop_num+ num_stage - 1)

Thus we should also ensure that i >= max(loop_num, num_stage - 1) for epilogue part.

@wrongtest-intellif
Copy link
Contributor Author

@tvm-bot re-run

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