Skip to content

Conversation

@hjagasiaAMD
Copy link

@hjagasiaAMD hjagasiaAMD commented Nov 13, 2025

[AMDGPU] Do not reassign scale source operands in amdgpu-rewrite-agpr-copy-mfma

Testing this seems difficult, as there has to be sufficient register pressure and live range overlapping to trigger the reassignment of the scale source operands.

Manually verified that this prevents a CK compilation failure from SWDEV-564511
v_mfma_scale_f32_16x16x128_f8f6f4 a[80:83], a[72:75], a[44:47], a[80:83], v41, a0/Invalid register, operand has 'VGPR_32' register class/ op_sel_hi:[0,0,0] cbsz:4 blgp:4

…-copy-mfma

Testing this seems difficult, as there has to be sufficient register pressure
and live range overlapping to trigger the reassignment of the scale source
operands.

Manually verified that this prevents a CK compilation failure from SWDEV-564511
@z1-cciauto
Copy link
Collaborator

Copy link

@dhruvachak dhruvachak left a comment

Choose a reason for hiding this comment

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

Is there a reason this is not submitted upstream?

@hjagasiaAMD hjagasiaAMD requested a review from bcahoon November 13, 2025 15:46
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