summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2017-02-15 19:21:04 +0000
committerXinliang David Li <davidxl@google.com>2017-02-15 19:21:04 +0000
commit538d666814d99ccc425aa633318938bd3bcad10b (patch)
treef9e15950cbde695bc9e17a7d4096f0140656d04a /llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
parent8eb1a48540172402843035cb95ecacf005c7cdeb (diff)
downloadbcm5719-llvm-538d666814d99ccc425aa633318938bd3bcad10b.tar.gz
bcm5719-llvm-538d666814d99ccc425aa633318938bd3bcad10b.zip
include function name in dot filename
Differential Revision: http://reviews.llvm.org/D29975 llvm-svn: 295220
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
index 557b5f8824d..9c7367b4c78 100644
--- a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
+++ b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
@@ -181,7 +181,7 @@ void MachineBlockFrequencyInfo::calculate(
if (ViewMachineBlockFreqPropagationDAG != GVDT_None &&
(ViewBlockFreqFuncName.empty() ||
F.getName().equals(ViewBlockFreqFuncName))) {
- view();
+ view("MachineBlockFrequencyDAGS." + F.getName());
}
}
@@ -197,10 +197,9 @@ void MachineBlockFrequencyInfo::releaseMemory() { MBFI.reset(); }
/// Pop up a ghostview window with the current block frequency propagation
/// rendered using dot.
-void MachineBlockFrequencyInfo::view(bool isSimple) const {
-// This code is only for debugging.
- ViewGraph(const_cast<MachineBlockFrequencyInfo *>(this),
- "MachineBlockFrequencyDAGs", isSimple);
+void MachineBlockFrequencyInfo::view(const Twine &Name, bool isSimple) const {
+ // This code is only for debugging.
+ ViewGraph(const_cast<MachineBlockFrequencyInfo *>(this), Name, isSimple);
}
BlockFrequency
OpenPOWER on IntegriCloud