aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-09-30 17:49:41 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-09-30 17:49:41 +0000
commitf478556740dedaa9cf3eae0210a8fc906851b78c (patch)
treec0a7fa368603ffaa487d3e180ff6b9e5fce6e443
parent1c53405b68829dac509ce2a245fe7dd100ceb808 (diff)
downloadexternal_llvm-f478556740dedaa9cf3eae0210a8fc906851b78c.zip
external_llvm-f478556740dedaa9cf3eae0210a8fc906851b78c.tar.gz
external_llvm-f478556740dedaa9cf3eae0210a8fc906851b78c.tar.bz2
Add statistic for # of emitWord() calls.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8772 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/SparcV9CodeEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
index 06ae469..70c41e1 100644
--- a/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
+++ b/lib/Target/SparcV9/SparcV9CodeEmitter.cpp
@@ -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;