We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0849c9c commit 1a633a4Copy full SHA for 1a633a4
visa/FrequencyInfo.h
@@ -143,9 +143,12 @@ class FrequencyInfo {
143
refFreqs[lr] = llvm::ScaledNumber<uint64_t>::getZero();
144
refFreqs[lr] += refFreq;
145
146
- if (staticRefCnts.find(lr) == staticRefCnts.end())
147
- staticRefCnts[lr] = 0;
148
- staticRefCnts[lr] += 1;
+ if (willDumpOnSpilThreshold() || willDumpSpillCostAnalysis()) {
+ if (staticRefCnts.find(lr) == staticRefCnts.end())
+ staticRefCnts[lr] = 0;
149
+ staticRefCnts[lr] += 1;
150
+ }
151
+
152
return;
153
};
154
0 commit comments