[PATCH] D127124: [AMDGPU] Add isMFMA helper function. NFC
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 06:47:28 PDT 2022
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp:1846
- auto IsMFMAFn = [](const MachineInstr &MI) -> bool {
- return SIInstrInfo::isMAI(MI) &&
- MI.getOpcode() != AMDGPU::V_ACCVGPR_WRITE_B32_e64 &&
- MI.getOpcode() != AMDGPU::V_ACCVGPR_READ_B32_e64;
+ auto IsMFMAFn = [](const MachineInstr &MI) {
+ return SIInstrInfo::isMFMA(MI);
----------------
Can you remove this wrapper function and use SIInstrInfo::isMFMA directly?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127124/new/
https://reviews.llvm.org/D127124
More information about the llvm-commits
mailing list