[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Sep 30 12:50:01 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
SparcV9CodeEmitter.cpp updated: 1.32 -> 1.33
---
Log message:
Add statistic for # of emitWord() calls.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.32 llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.33
--- llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.32 Fri Sep 5 17:59:31 2003
+++ llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp Tue Sep 30 12:49:41 2003
@@ -26,6 +26,7 @@
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 @@
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;
More information about the llvm-commits
mailing list