File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 2626#include " GCNSubtarget.h"
2727#include " SIMachineFunctionInfo.h"
2828#include " SIRegisterInfo.h"
29+ #include " llvm/ADT/Statistic.h"
2930#include " llvm/CodeGen/LiveIntervals.h"
3031#include " llvm/CodeGen/LiveRegMatrix.h"
3132#include " llvm/CodeGen/MachineFunctionPass.h"
@@ -38,6 +39,9 @@ using namespace llvm;
3839
3940namespace {
4041
42+ STATISTIC (NumMFMAsRewrittenToAGPR,
43+ " Number of MFMA instructions rewritten to use AGPR form" );
44+
4145class AMDGPURewriteAGPRCopyMFMAImpl {
4246 MachineFunction &MF;
4347 const GCNSubtarget &ST;
@@ -263,6 +267,7 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::tryReassigningMFMAChain(
263267 int NewMFMAOp =
264268 AMDGPU::getMFMASrcCVDstAGPROp (RewriteCandidate->getOpcode ());
265269 RewriteCandidate->setDesc (TII.get (NewMFMAOp));
270+ ++NumMFMAsRewrittenToAGPR;
266271 }
267272
268273 return true ;
You can’t perform that action at this time.
0 commit comments