This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Handle mandatory literals in isOperandLegal
ClosedPublic

Authored by foad on May 20 2022, 5:25 AM.

Details

Summary

Extend SIInstrInfo::isOperandLegal to enforce a limit on the number of
literal operands for all VALU instructions, not just VOP3. In particular
it now handles VOP2 instructions with a mandatory literal operand like
V_FMAAK_F32.

Diff Detail

Event Timeline

foad created this revision.May 20 2022, 5:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2022, 5:25 AM
foad requested review of this revision.May 20 2022, 5:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 20 2022, 5:25 AM
Joe_Nash accepted this revision.May 20 2022, 6:53 AM
This revision is now accepted and ready to land.May 20 2022, 6:53 AM
piotr added a comment.May 20 2022, 7:13 AM

Just verified this patch fixes the rendering corruption caused by D114643 - thanks!

This revision was landed with ongoing or failed builds.May 20 2022, 8:17 AM
This revision was automatically updated to reflect the committed changes.