Skip to content

[AIEX][NFC] clarify MinTripCount==1 overload#861

Open
F-Stuckmann wants to merge 1 commit intoaie-publicfrom
stuckmann.hardware.loops.tripcount
Open

[AIEX][NFC] clarify MinTripCount==1 overload#861
F-Stuckmann wants to merge 1 commit intoaie-publicfrom
stuckmann.hardware.loops.tripcount

Conversation

@F-Stuckmann
Copy link
Copy Markdown
Collaborator

@F-Stuckmann F-Stuckmann commented Mar 20, 2026

Allow HW loops when MinTripCount ==1.

Copy link
Copy Markdown
Collaborator

@konstantinschwarz konstantinschwarz left a comment

Choose a reason for hiding this comment

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

I agree with this change.
However, we used the Min Tripcount == 1 as a poor hack to disable hardware loop generation. This was necessary to control code bloat in very size constrained loops.

We should have a separate pragma to disable hardware loops. Until then, we should not merge this change. Setting to Request changes to avoid accidentally merging this PR

@F-Stuckmann F-Stuckmann force-pushed the stuckmann.hardware.loops.tripcount branch from 47bfa91 to a67ae54 Compare March 23, 2026 16:04
@F-Stuckmann
Copy link
Copy Markdown
Collaborator Author

I changed the PR to only add a comment explaining our MinIterCountHLReject = 1 choice

Copy link
Copy Markdown
Collaborator

@andcarminati andcarminati left a comment

Choose a reason for hiding this comment

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

LGTM.

cl::desc("Enable true zero overhead hardware loops on AIE"),
cl::init(true), cl::Hidden);

/// We currently override MinIterCountHLReject == 1 to
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: overload?

@F-Stuckmann F-Stuckmann changed the title [AIEX] allow HW Loops when Min Tripcount == 1 [AIEX][NFC] clarify MinTripCount==1 overload Apr 7, 2026
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.

4 participants