summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitec8ef9b64348616af8fa635875c9a109e73fd792 (patch)
tree08297b4537f62f8311c9c0b37971d2dc0eac3a49 /llvm/lib/Analysis/LoopPass.cpp
parentf141dd1b95b29247563baeab482f6d8f4e9143b7 (diff)
downloadbcm5719-llvm-ec8ef9b64348616af8fa635875c9a109e73fd792.tar.gz
bcm5719-llvm-ec8ef9b64348616af8fa635875c9a109e73fd792.zip
revert r99862 which is causing FNT failures.
llvm-svn: 99870
Diffstat (limited to 'llvm/lib/Analysis/LoopPass.cpp')
-rw-r--r--llvm/lib/Analysis/LoopPass.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/LoopPass.cpp b/llvm/lib/Analysis/LoopPass.cpp
index f26c0eb6668..2d613f6de71 100644
--- a/llvm/lib/Analysis/LoopPass.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud