Skip to content

Conversation

@martien-de-jong
Copy link
Collaborator

@martien-de-jong martien-de-jong commented Nov 12, 2025

This improves SiLU by some 5%. We explicitly select the loopclass to reject it in prepipeliner.
image

}

AIE::SlotStatistics Stats = AIE::computeSlotStatistics(*LoopBlock, &TII);
int LoopClass = classifyLoop(Stats);
Copy link
Collaborator

@F-Stuckmann F-Stuckmann Nov 13, 2025

Choose a reason for hiding this comment

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

I wonder if we should move all the high level methods into SlotStatistics (rejectPrepipeling but also the WAW methods getMinIIBias selectMode).
This fragmentation and magic numbers across the code base seems to be get us into a maintainance hell

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maintenance will not be less of a hell, since SlotStatistics is just a specific set of numbers. Whether we export the numbers or import the methods doesn't make much difference. If I tune an algorithm, I think I'd like its source file to change. If this requires a new data point in the loopclass space, I think it's natural to change the LoopClass file, which will just add new lines, never change existing ones.

Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe have a comment to clarify that once created loopclass statistics shouldn't be changed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is one in AIELoopClass.cpp

@martien-de-jong martien-de-jong force-pushed the martien.SiLU-postpipeline branch from 4d2fa8a to 2942c74 Compare November 13, 2025 13:55
{47, {{0, 0, 0, 0, 360, 0, 240, 360}, {0, 60, 60}}},
// These are pre-regalloc
{1000, {{0, 0, 0, 0, 480, 0, 480, 480}, {0, 120, 120}}},
{1001, {{0, 0, 0, 0, 360, 0, 480, 720}, {0, 60, 60}}},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Needed to add this, since it caused a false positive match due to small distance

@martien-de-jong martien-de-jong force-pushed the martien.SiLU-postpipeline branch from 2942c74 to 8a90baf Compare November 14, 2025 12:55
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