summaryrefslogtreecommitdiff
path: root/lib/Analysis/LoopPass.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-30 03:57:00 +0000
committerChris Lattner <sabre@nondot.org>2010-03-30 03:57:00 +0000
commit0d2725ad696afb60c86076469031783669809739 (patch)
tree377d0734192a08d8ed406dac96fed4b3131f10c1 /lib/Analysis/LoopPass.cpp
parent9fa0eff30a0d4fcbc84ac3ada4c47620b5449043 (diff)
downloadllvm-0d2725ad696afb60c86076469031783669809739.tar.gz
llvm-0d2725ad696afb60c86076469031783669809739.tar.bz2
llvm-0d2725ad696afb60c86076469031783669809739.tar.xz
revert r99862 which is causing FNT failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopPass.cpp')
-rw-r--r--lib/Analysis/LoopPass.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Analysis/LoopPass.cpp b/lib/Analysis/LoopPass.cpp
index f26c0eb666..2d613f6de7 100644
--- a/lib/Analysis/LoopPass.cpp
+++ b/lib/Analysis/LoopPass.cpp
@@ -14,7 +14,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/Analysis/LoopPass.h"
-#include "llvm/Support/Timer.h"
using namespace llvm;
//===----------------------------------------------------------------------===//
@@ -229,9 +228,9 @@ bool LPPassManager::runOnFunction(Function &F) {
{
PassManagerPrettyStackEntry X(P, *CurrentLoop->getHeader());
- TimeRegion PassTimer(getPassTimer(P));
-
+ Timer *T = StartPassTimer(P);
Changed |= P->runOnLoop(CurrentLoop, *this);
+ StopPassTimer(P, T);
}
if (Changed)
@@ -246,10 +245,9 @@ bool LPPassManager::runOnFunction(Function &F) {
// is a function pass and it's really expensive to verify every
// loop in the function every time. That level of checking can be
// enabled with the -verify-loop-info option.
- {
- TimeRegion PassTimer(getPassTimer(LI));
- CurrentLoop->verifyLoop();
- }
+ Timer *T = StartPassTimer(LI);
+ CurrentLoop->verifyLoop();
+ StopPassTimer(LI, T);
// Then call the regular verifyAnalysis functions.
verifyPreservedAnalysis(P);