Extend the StartPassTimer and StopPassTimer functions so that the
authorDan Gohman <gohman@apple.com>
Mon, 28 Sep 2009 00:07:05 +0000 (00:07 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 28 Sep 2009 00:07:05 +0000 (00:07 +0000)
commit5c12adaa8b92800d835ddd5c97723c6eb5628b5b
tree8336197f8626e6b21e83541178978e3fd8a80bae
parent6a2fa325c1763a0fb27eceaa78b3a9bf683416bf
Extend the StartPassTimer and StopPassTimer functions so that the
code that stops the timer doesn't have to search to find the timer
object before it stops the timer. This avoids a lock acquisition
and a few other things done with the timer running.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82949 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/PassManagers.h
lib/Analysis/IPA/CallGraphSCCPass.cpp
lib/Analysis/LoopPass.cpp
lib/VMCore/PassManager.cpp