aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Callahan <dcallahan@fb.com>2019-01-09 19:12:38 +0000
committerDavid Callahan <dcallahan@fb.com>2019-01-09 19:12:38 +0000
commit3ef0f4447dcc2cdf74d76b5dc64ccd2de8af35a4 (patch)
treea8c43cc0ad9dd1ab3a0626994786c6dfe25b9200
parent6c6fb80c2d630ec8514899e73b49bbc432c16e68 (diff)
downloadllvm-3ef0f4447dcc2cdf74d76b5dc64ccd2de8af35a4.zip
llvm-3ef0f4447dcc2cdf74d76b5dc64ccd2de8af35a4.tar.gz
llvm-3ef0f4447dcc2cdf74d76b5dc64ccd2de8af35a4.tar.bz2
refactor BlockFrequencyInfo::view to take a title parameter
Summary: All a non-default title for the debugging this debugging aide Reviewers: twoh, Kader, modocache Reviewed By: twoh Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D56499 llvm-svn: 350749
-rw-r--r--llvm/include/llvm/Analysis/BlockFrequencyInfo.h2
-rw-r--r--llvm/lib/Analysis/BlockFrequencyInfo.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Analysis/BlockFrequencyInfo.h b/llvm/include/llvm/Analysis/BlockFrequencyInfo.h
index ca12db6..0b26187 100644
--- a/llvm/include/llvm/Analysis/BlockFrequencyInfo.h
+++ b/llvm/include/llvm/Analysis/BlockFrequencyInfo.h
@@ -56,7 +56,7 @@ public:
const Function *getFunction() const;
const BranchProbabilityInfo *getBPI() const;
- void view() const;
+ void view(StringRef = "BlockFrequencyDAGs") const;
/// getblockFreq - Return block frequency. Return 0 if we don't have the
/// information. Please note that initial frequency is equal to ENTRY_FREQ. It
diff --git a/llvm/lib/Analysis/BlockFrequencyInfo.cpp b/llvm/lib/Analysis/BlockFrequencyInfo.cpp
index 41c2958..ef27c36 100644
--- a/llvm/lib/Analysis/BlockFrequencyInfo.cpp
+++ b/llvm/lib/Analysis/BlockFrequencyInfo.cpp
@@ -252,8 +252,8 @@ void BlockFrequencyInfo::setBlockFreqAndScale(
/// Pop up a ghostview window with the current block frequency propagation
/// rendered using dot.
-void BlockFrequencyInfo::view() const {
- ViewGraph(const_cast<BlockFrequencyInfo *>(this), "BlockFrequencyDAGs");
+void BlockFrequencyInfo::view(StringRef title) const {
+ ViewGraph(const_cast<BlockFrequencyInfo *>(this), title);
}
const Function *BlockFrequencyInfo::getFunction() const {