diff options
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 1977a5489de..5c6512d8ed7 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -35,17 +35,14 @@ #include <cmath> using namespace llvm; -namespace { - - static Statistic NumIters - ("regalloc", "Number of iterations performed"); - static Statistic NumBacktracks - ("regalloc", "Number of times we had to backtrack"); +STATISTIC(NumIters , "Number of iterations performed"); +STATISTIC(NumBacktracks, "Number of times we had to backtrack"); - static RegisterRegAlloc - linearscanRegAlloc("linearscan", " linear scan register allocator", - createLinearScanRegisterAllocator); +static RegisterRegAlloc +linearscanRegAlloc("linearscan", " linear scan register allocator", + createLinearScanRegisterAllocator); +namespace { static unsigned numIterations = 0; static unsigned numIntervals = 0; |