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 26
26
#include " GCNSubtarget.h"
27
27
#include " SIMachineFunctionInfo.h"
28
28
#include " SIRegisterInfo.h"
29
+ #include " llvm/ADT/Statistic.h"
29
30
#include " llvm/CodeGen/LiveIntervals.h"
30
31
#include " llvm/CodeGen/LiveRegMatrix.h"
31
32
#include " llvm/CodeGen/MachineFunctionPass.h"
@@ -38,6 +39,9 @@ using namespace llvm;
38
39
39
40
namespace {
40
41
42
+ STATISTIC (NumMFMAsRewrittenToAGPR,
43
+ " Number of MFMA instructions rewritten to use AGPR form" );
44
+
41
45
class AMDGPURewriteAGPRCopyMFMAImpl {
42
46
MachineFunction &MF;
43
47
const GCNSubtarget &ST;
@@ -263,6 +267,7 @@ bool AMDGPURewriteAGPRCopyMFMAImpl::tryReassigningMFMAChain(
263
267
int NewMFMAOp =
264
268
AMDGPU::getMFMASrcCVDstAGPROp (RewriteCandidate->getOpcode ());
265
269
RewriteCandidate->setDesc (TII.get (NewMFMAOp));
270
+ ++NumMFMAsRewrittenToAGPR;
266
271
}
267
272
268
273
return true ;
You can’t perform that action at this time.
0 commit comments