Added BlockFrequencyInfo::view for displaying the block frequency propagation graph via graphviz.

This is useful for debugging issues in the BlockFrequency implementation since
one can easily visualize where probability mass and other errors occur in the
propagation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194654 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman
2013-11-14 02:27:46 +00:00
parent 3f4c031f21
commit e2058ff5bd
2 changed files with 105 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ public:
bool runOnFunction(Function &F);
void print(raw_ostream &O, const Module *M) const;
const Function *getFunction() const;
void view() const;
/// getblockFreq - Return block frequency. Return 0 if we don't have the
/// information. Please note that initial frequency is equal to ENTRY_FREQ. It