This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add isMFMA helper function. NFC
ClosedPublic

Authored by kerbowa on Jun 6 2022, 9:01 AM.

Diff Detail

Event Timeline

kerbowa created this revision.Jun 6 2022, 9:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 9:01 AM
kerbowa requested review of this revision.Jun 6 2022, 9:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 9:01 AM
rampitec accepted this revision.Jun 6 2022, 11:27 AM

LGTM.

Note, the same code is used in the AMDGPUMFMAIGroupLP.cpp, you may want to update it too.

This revision is now accepted and ready to land.Jun 6 2022, 11:27 AM
foad added inline comments.Jun 7 2022, 6:47 AM
llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
1843–1844

Can you remove this wrapper function and use SIInstrInfo::isMFMA directly?

kerbowa updated this revision to Diff 436175.Jun 11 2022, 6:16 PM

Use function directly instead of wrapping in lambda.

rampitec accepted this revision.Jun 13 2022, 12:50 PM

Still LGTM.

This revision was automatically updated to reflect the committed changes.