]> granicus.if.org Git - llvm/commit
Add options to dump PGO counts in text.
authorHiroshi Yamauchi <yamauchi@google.com>
Wed, 13 Sep 2017 17:20:38 +0000 (17:20 +0000)
committerHiroshi Yamauchi <yamauchi@google.com>
Wed, 13 Sep 2017 17:20:38 +0000 (17:20 +0000)
commitcc31faa0b45a8bbcef133ebba2d3ac3942641a82
tree3aa7282b4d94c84d52d7388b12ba99a2020f7209
parentbca2a430d9c8446a53d75a50a8ee51bd1b33f7cb
Add options to dump PGO counts in text.

Summary:
Added text options to -pgo-view-counts and -pgo-view-raw-counts that dump block frequency and branch probability info 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/D37776

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313159 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyInfo.h
lib/Analysis/BlockFrequencyInfo.cpp
lib/Transforms/Instrumentation/PGOInstrumentation.cpp