| Index: src/IceRegAlloc.cpp
|
| diff --git a/src/IceRegAlloc.cpp b/src/IceRegAlloc.cpp
|
| index 69353a1df9bb20ff8dd3ee86cd8ed9b6f5ccc1db..2d00db0ff7dac3a7afdc552609a645e77452fe2e 100644
|
| --- a/src/IceRegAlloc.cpp
|
| +++ b/src/IceRegAlloc.cpp
|
| @@ -64,8 +64,7 @@ void dumpDisableOverlap(const Cfg *Func, const Variable *Var,
|
| // preparation. Results are assigned to Variable::RegNum for each
|
| // Variable.
|
| void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull) {
|
| - static TimerIdT IDscan = GlobalContext::getTimerID("linearScan");
|
| - TimerMarker T(IDscan, Func->getContext());
|
| + TimerMarker T(TimerStack::TT_linearScan, Func);
|
| assert(RegMaskFull.any()); // Sanity check
|
| Unhandled.clear();
|
| UnhandledPrecolored.clear();
|
| @@ -86,9 +85,7 @@ void LinearScan::scan(const llvm::SmallBitVector &RegMaskFull) {
|
| // storing Func->getVariables().
|
| const VarList &Vars = Func->getVariables();
|
| {
|
| - static TimerIdT IDinitUnhandled =
|
| - GlobalContext::getTimerID("initUnhandled");
|
| - TimerMarker T(IDinitUnhandled, Func->getContext());
|
| + TimerMarker T(TimerStack::TT_initUnhandled, Func);
|
| for (Variable *Var : Vars) {
|
| // Explicitly don't consider zero-weight variables, which are
|
| // meant to be spill slots.
|
|
|