From ec8ef9b64348616af8fa635875c9a109e73fd792 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 30 Mar 2010 03:57:00 +0000 Subject: revert r99862 which is causing FNT failures. llvm-svn: 99870 --- llvm/lib/Analysis/LoopPass.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'llvm/lib/Analysis/LoopPass.cpp') 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); -- cgit v1.2.3