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

[AIE2p] Register re-allocation for BFP16 regs #362

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

gbossu
Copy link
Collaborator

@gbossu gbossu commented Feb 18, 2025

Enable register re-allocation for EX/EY registers. Needed for Conv2D_bfp16

@@ -591,6 +591,11 @@ bool AIE2PRegisterInfo::isVecOrAccRegClass(
if (AIE2P::ACC2048RegClass.hasSubClassEq(&RC))
return true;

// BFP16 registers
if (AIE2P::VEC576RegClass.hasSubClassEq(&RC) ||
AIE2P::eEYRegClass.hasSubClassEq(&RC))
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice, we're also checking the "double registers"

Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: define a new register class VEC1152 with eEY and use it here?

@gbossu gbossu enabled auto-merge (rebase) February 18, 2025 15:21
@gbossu gbossu merged commit a352d6e into aie-public Feb 18, 2025
9 checks passed
@gbossu gbossu deleted the gaetan.realloc.ex.ey branch February 19, 2025 08:24
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