[PATCH] D56499: refactor BlockFrequencyInfo::view to take a title parameter
David Callahan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 9 11:16:24 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL350749: refactor BlockFrequencyInfo::view to take a title parameter (authored by david2050, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56499/new/
https://reviews.llvm.org/D56499
Files:
llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h
llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp
Index: llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h
===================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h
@@ -56,7 +56,7 @@
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
Index: llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp
===================================================================
--- llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp
+++ llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp
@@ -252,8 +252,8 @@
/// 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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56499.180887.patch
Type: text/x-patch
Size: 1234 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190109/7ae3b835/attachment.bin>
More information about the llvm-commits
mailing list