-
Notifications
You must be signed in to change notification settings - Fork 14
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] Legalize and select VMUL.f from G_FMUL #360
base: aie-public
Are you sure you want to change the base?
Conversation
MachineRegisterInfo &MRI = *MIRBuilder.getMRI(); | ||
|
||
const Register DstReg = MI.getOperand(0).getReg(); | ||
Register SrcLHS = MI.getOperand(1).getReg(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: const for both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modify them
; CHECK-NEXT: [[CONCAT_VECTORS:%[0-9]+]]:_(<64 x s32>) = G_CONCAT_VECTORS [[BITCAST]](<32 x s32>), [[DEF1]](<32 x s32>) | ||
; CHECK-NEXT: [[BITCAST1:%[0-9]+]]:_(<32 x s32>) = G_BITCAST [[AIE_INSERT_VECTOR_ELT1]](<64 x s16>) | ||
; CHECK-NEXT: [[CONCAT_VECTORS1:%[0-9]+]]:_(<64 x s32>) = G_CONCAT_VECTORS [[BITCAST1]](<32 x s32>), [[DEF1]](<32 x s32>) | ||
; CHECK-NEXT: [[FMUL:%[0-9]+]]:_(<64 x s32>) = G_FMUL [[CONCAT_VECTORS]], [[CONCAT_VECTORS1]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also have vmul.f that operates on X registers, I will change to legalize and select that one instead for less register pressure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
02cc673
to
872e379
Compare
No description provided.