[PATCH] D117253: [AMDGPU] Select VGPR versions of MFMA if possible
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 17 16:53:23 PST 2022
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp:103
+
+ if (ST.hasGFX90AInsts() && !HasCalls &&
+ ST.getMaxNumVGPRs(F) <= AMDGPU::VGPR_32RegClass.getNumRegs() &&
----------------
arsenm wrote:
> Relying on the calls check here is unreliable. Since you only really need to query this before selection, can't we just see when an asm statement containing AGPRs is hit?
This function already relyies on this. Then it is not sufficient to check for asm, as a called function may use agprs.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117253/new/
https://reviews.llvm.org/D117253
More information about the llvm-commits
mailing list