diff options
author | Xinliang David Li <davidxl@google.com> | 2017-01-29 01:57:02 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2017-01-29 01:57:02 +0000 |
commit | fd3f645f9de1ac0461577c872162f5977abcc329 (patch) | |
tree | 409700667578cc99650c411f9b8f9b69b3d5abb6 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 9d8f6f8a45c0440c39d14f4683e9259c1a3b234b (diff) | |
download | llvm-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.cpp | 2 |
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. |