From 07bee290de7569b413831c75dface6edb240a8d8 Mon Sep 17 00:00:00 2001 From: Siddharth Bhat Date: Fri, 2 Jun 2017 08:01:22 +0000 Subject: [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 --- polly/lib/CodeGen/CodeGeneration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polly/lib/CodeGen/CodeGeneration.cpp') 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()); -- cgit v1.2.3