summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2017-02-02 19:18:56 +0000
committerXinliang David Li <davidxl@google.com>2017-02-02 19:18:56 +0000
commit1eb4ec6a2eedec4e69b664540fa1a14d5bf899b4 (patch)
tree569d798843a86d1ce40e8a61e0bee2fc49b67b9f /llvm/lib/Transforms/Instrumentation
parentd64360d935d71dcd01913b656b17e8ec7b76623b (diff)
downloadbcm5719-llvm-1eb4ec6a2eedec4e69b664540fa1a14d5bf899b4.tar.gz
bcm5719-llvm-1eb4ec6a2eedec4e69b664540fa1a14d5bf899b4.zip
[PGO] make graph view internal options available for all builds
Differential Revision: https://reviews.llvm.org/D29259 llvm-svn: 293921
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-rw-r--r--llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
index b31d27151fc..97fe6c89d57 100644
--- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
+++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
@@ -1223,7 +1223,6 @@ static bool annotateAllFunctions(
ColdFunctions.push_back(&F);
else if (FreqAttr == PGOUseFunc::FFA_Hot)
HotFunctions.push_back(&F);
-#ifndef NDEBUG
if (PGOViewCounts &&
(PGOViewFunction.empty() || F.getName().equals(PGOViewFunction))) {
LoopInfo LI{DominatorTree(F)};
@@ -1234,7 +1233,6 @@ static bool annotateAllFunctions(
NewBFI->view();
}
-#endif
if (PGOViewRawCounts &&
(PGOViewFunction.empty() || F.getName().equals(PGOViewFunction))) {
if (PGOViewFunction.empty())
OpenPOWER on IntegriCloud