diff options
author | Siddharth Bhat <siddu.druid@gmail.com> | 2017-06-02 08:01:22 +0000 |
---|---|---|
committer | Siddharth Bhat <siddu.druid@gmail.com> | 2017-06-02 08:01:22 +0000 |
commit | 07bee290de7569b413831c75dface6edb240a8d8 (patch) | |
tree | 68785f542fe688d058a988c82094b3ff074e641b /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | af199153ccc5a6b6165da3ab16fe6c8ead523b88 (diff) | |
download | bcm5719-llvm-07bee290de7569b413831c75dface6edb240a8d8.tar.gz bcm5719-llvm-07bee290de7569b413831c75dface6edb240a8d8.zip |
[CodeGen] Extend Performance Counter to track per-scop information.
Previously, we would generate one performance counter for all scops.
Now, we generate both the old information, as well as a per-scop
performance counter to generate finer grained information.
This patch needed a way to generate a unique name for a `Scop`.
The start region, end region, and function name combined provides a
unique `Scop` name. So, `Scop` has a new public API to provide its start
and end region names.
Differential Revision: https://reviews.llvm.org/D33723
llvm-svn: 304528
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 5e0f08e0f40..aad2ca131fd 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -184,7 +184,7 @@ static bool CodeGen(Scop &S, IslAstInfo &AI, LoopInfo &LI, DominatorTree &DT, IslNodeBuilder NodeBuilder(Builder, Annotator, DL, LI, SE, DT, S, StartBlock); if (PerfMonitoring) { - PerfMonitor P(EnteringBB->getParent()->getParent()); + PerfMonitor P(S, EnteringBB->getParent()->getParent()); P.initialize(); P.insertRegionStart(SplitBlock->getTerminator()); |