Skip to content

Add default option to only do loop fission for unit trip loops - #21069

Merged
nirvedhmeshram merged 4 commits into
iree-org:mainfrom
nirvedhmeshram:fission_unit_trip
Jun 10, 2025
Merged

nirvedhmeshram merged 4 commits into
iree-org:mainfrom
nirvedhmeshram:fission_unit_trip

Conversation

@nirvedhmeshram

Copy link
Copy Markdown
Contributor

This option is useful since we don't get good performance when we fission multi-trip loops. Additionally the prefetching pass that makes use of fission is not set up to support multi-trip nested loops. Note that even if one candidate is found to be multi-trip we don't do the whole pass as we wont be doing prefetching in that case and hence no point in fissioning at all.

@nirvedhmeshram
nirvedhmeshram requested review from Max191 and jerryyin and removed request for MaheshRavishankar and hanhanW June 10, 2025 17:44
Signed-off-by: Nirvedh Meshram <[email protected]>
@nirvedhmeshram
nirvedhmeshram requested a review from jerryyin June 10, 2025 19:17

@jerryyin jerryyin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Nirvedh Meshram <[email protected]>
@nirvedhmeshram
nirvedhmeshram merged commit ca25934 into iree-org:main Jun 10, 2025
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
This option is useful since we don't get good performance when we
fission multi-trip loops. Additionally the prefetching pass that makes
use of fission is not set up to support multi-trip nested loops. Note
that even if one candidate is found to be multi-trip we don't do the
whole pass as we wont be doing prefetching in that case and hence no
point in fissioning at all.

---------

Signed-off-by: Nirvedh Meshram <[email protected]>
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.

3 participants