[PATCH] D62666: ftime-trace: Trace loop passes
Russell Gallop via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 08:15:35 PDT 2019
russell.gallop created this revision.
russell.gallop added reviewers: anton-afanasyev, llvm-commits.
russell.gallop added a project: LLVM.
Herald added a subscriber: hiraditya.
These can take a significant amount of time in some builds.
Suggested by Andrea Di Biagio.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62666
Files:
llvm/lib/Analysis/LoopPass.cpp
Index: llvm/lib/Analysis/LoopPass.cpp
===================================================================
--- llvm/lib/Analysis/LoopPass.cpp
+++ llvm/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.202198.patch
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/a1d51087/attachment.bin>
More information about the llvm-commits
mailing list