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;
@@ -255,6 +259,7 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::tryReassigningMFMAChain(
255259 int NewMFMAOp =
256260 AMDGPU::getMFMASrcCVDstAGPROp (RewriteCandidate->getOpcode ());
257261 RewriteCandidate->setDesc (TII.get (NewMFMAOp));
262+ ++NumMFMAsRewrittenToAGPR;
258263 }
259264
260265 return true ;
You can’t perform that action at this time.
0 commit comments