[llvm-commits] CVS: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
Tanya Brethour
tbrethou at cs.uiuc.edu
Thu Jun 16 21:01:45 PDT 2005
Changes in directory llvm/lib/Target/SparcV9/RegAlloc:
PhyRegAlloc.cpp updated: 1.168 -> 1.169
---
Log message:
Added statistic to count number of spills.
---
Diffs of the changes: (+3 -0)
PhyRegAlloc.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.168 llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.169
--- llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp:1.168 Sun Jun 12 18:52:58 2005
+++ llvm/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp Thu Jun 16 23:01:34 2005
@@ -46,10 +46,12 @@
#include "llvm/Support/CommandLine.h"
#include "llvm/ADT/SetOperations.h"
#include "llvm/ADT/STLExtras.h"
+#include "llvm/ADT/Statistic.h"
#include <cmath>
#include <iostream>
namespace llvm {
+ Statistic<> RASpills("regalloc-spills", "Number of registers spilled");
RegAllocDebugLevel_t DEBUG_RA;
@@ -703,6 +705,7 @@
// Finally, insert the entire spill code sequences before/after MInst
AI.InstrnsBefore.insert(AI.InstrnsBefore.end(), MIBef.begin(), MIBef.end());
AI.InstrnsAfter.insert(AI.InstrnsAfter.begin(), MIAft.begin(), MIAft.end());
+ ++RASpills;
if (DEBUG_RA) {
std::cerr << "\nFor Inst:\n " << *MInst;
More information about the llvm-commits
mailing list