Add statistic for # of emitWord() calls.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2003-09-30 17:49:41 +00:00
parent 1c53405b68
commit f478556740

View File

@ -26,6 +26,7 @@ namespace {
Statistic<> OverwrittenCalls("call-ovwr", "Number of over-written calls");
Statistic<> UnmodifiedCalls("call-skip", "Number of unmodified calls");
Statistic<> CallbackCalls("callback", "Number CompilationCallback() calls");
Statistic<> WordsEmitted("words-emitted", "No. of words emitted to memory");
}
bool UltraSparc::addPassesToEmitMachineCode(FunctionPassManager &PM,
@ -440,6 +441,7 @@ SparcV9CodeEmitter::~SparcV9CodeEmitter() {
void SparcV9CodeEmitter::emitWord(unsigned Val) {
// Output the constant in big endian byte order...
++WordsEmitted;
unsigned byteVal;
for (int i = 3; i >= 0; --i) {
byteVal = Val >> 8*i;