aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2017-01-29 01:57:02 +0000
committerXinliang David Li <davidxl@google.com>2017-01-29 01:57:02 +0000
commitfd3f645f9de1ac0461577c872162f5977abcc329 (patch)
tree409700667578cc99650c411f9b8f9b69b3d5abb6 /llvm/lib/CodeGen/BranchFolding.cpp
parent9d8f6f8a45c0440c39d14f4683e9259c1a3b234b (diff)
downloadllvm-fd3f645f9de1ac0461577c872162f5977abcc329.zip
llvm-fd3f645f9de1ac0461577c872162f5977abcc329.tar.gz
llvm-fd3f645f9de1ac0461577c872162f5977abcc329.tar.bz2
Add support to dump dot graph block layout after MBP
Differential Revision: https://reviews.llvm.org/D29141 llvm-svn: 293408
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index a898e32..1bdfa2d 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -498,6 +498,8 @@ BranchFolder::MBFIWrapper::printBlockFreq(raw_ostream &OS,
return MBFI.printBlockFreq(OS, Freq);
}
+void BranchFolder::MBFIWrapper::view(bool isSimple) { MBFI.view(isSimple); }
+
/// CountTerminators - Count the number of terminators in the given
/// block and set I to the position of the first non-terminator, if there
/// is one, or MBB->end() otherwise.