[llvm-commits] CVS: llvm/lib/CodeGen/RegAllocLinearScan.cpp
Alkis Evlogimenos
alkis at niobe.cs.uiuc.edu
Mon Feb 23 12:46:01 PST 2004
Changes in directory llvm/lib/CodeGen:
RegAllocLinearScan.cpp updated: 1.60 -> 1.61
---
Log message:
Add number of spilled registers statistic.
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/CodeGen/RegAllocLinearScan.cpp
diff -u llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.60 llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.61
--- llvm/lib/CodeGen/RegAllocLinearScan.cpp:1.60 Mon Feb 23 12:28:35 2004
+++ llvm/lib/CodeGen/RegAllocLinearScan.cpp Mon Feb 23 12:45:32 2004
@@ -34,6 +34,7 @@
namespace {
Statistic<> numStores("ra-linearscan", "Number of stores added");
Statistic<> numLoads ("ra-linearscan", "Number of loads added");
+ Statistic<> numSpills("ra-linearscan", "Number of register spills");
class RA : public MachineFunctionPass {
private:
@@ -737,6 +738,7 @@
bool inserted = v2ssMap_.insert(std::make_pair(virtReg, frameIndex)).second;
assert(inserted && "attempt to assign stack slot to spilled register!");
+ ++numSpills;
return frameIndex;
}
More information about the llvm-commits
mailing list