[PATCH] D62666: ftime-trace: Trace loop passes
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 03:13:04 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362219: ftime-trace: Trace loop passes (authored by russell_gallop, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D62666?vs=202198&id=202407#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62666/new/
https://reviews.llvm.org/D62666
Files:
llvm/trunk/lib/Analysis/LoopPass.cpp
Index: llvm/trunk/lib/Analysis/LoopPass.cpp
===================================================================
--- llvm/trunk/lib/Analysis/LoopPass.cpp
+++ llvm/trunk/lib/Analysis/LoopPass.cpp
@@ -22,6 +22,7 @@
#include "llvm/IR/PassTimingInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Timer.h"
+#include "llvm/Support/TimeProfiler.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
@@ -209,6 +210,8 @@
for (unsigned Index = 0; Index < getNumContainedPasses(); ++Index) {
LoopPass *P = getContainedPass(Index);
+ llvm::TimeTraceScope LoopPassScope("RunLoopPass", P->getPassName());
+
dumpPassInfo(P, EXECUTION_MSG, ON_LOOP_MSG,
CurrentLoop->getHeader()->getName());
dumpRequiredSet(P);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62666.202407.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190531/e8f99a18/attachment.bin>
More information about the llvm-commits
mailing list