]> granicus.if.org Git - llvm/commit
Add options to dump block frequency/branch probability info in text.
authorHiroshi Yamauchi <yamauchi@google.com>
Sat, 26 Aug 2017 00:31:00 +0000 (00:31 +0000)
committerHiroshi Yamauchi <yamauchi@google.com>
Sat, 26 Aug 2017 00:31:00 +0000 (00:31 +0000)
commit1020c414d8368e5fc7eca67fff3877b996ea3d71
tree7ca8e559d70efe83e9484f6a7f7c87303b950c79
parent69d4710ed067f1f2ce5880b45f9fb5e612d2f765
Add options to dump block frequency/branch probability info in text.

Summary:
Add options -print-bfi/-print-bpi that dump block frequency and branch
probability info like -view-block-freq-propagation-dags and
-view-machine-block-freq-propagation-dags do but in text.

This is useful when the graph is very large and complex (the dot command
crashes, lines/edges too close to tell apart, hard to navigate without textual
search) or simply when text is preferred.

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D37165

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311822 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BlockFrequencyInfo.cpp
lib/Analysis/BranchProbabilityInfo.cpp
lib/CodeGen/MachineBlockFrequencyInfo.cpp