diff options
author | David Callahan <dcallahan@fb.com> | 2019-01-09 19:12:38 +0000 |
---|---|---|
committer | David Callahan <dcallahan@fb.com> | 2019-01-09 19:12:38 +0000 |
commit | 3ef0f4447dcc2cdf74d76b5dc64ccd2de8af35a4 (patch) | |
tree | a8c43cc0ad9dd1ab3a0626994786c6dfe25b9200 | |
parent | 6c6fb80c2d630ec8514899e73b49bbc432c16e68 (diff) | |
download | llvm-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.h | 2 | ||||
-rw-r--r-- | llvm/lib/Analysis/BlockFrequencyInfo.cpp | 4 |
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 { |