Added MachineBlockFrequencyInfo::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.

This is the MI version of r194654.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196183 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Michael Gottesman
2013-12-03 00:49:33 +00:00
parent 5b93ae5ab5
commit eae8ef479d
2 changed files with 111 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//====----- MachineBlockFrequencyInfo.h - MachineBlock Frequency Analysis ----====//
//====-- MachineBlockFrequencyInfo.h - MBB Frequency Analysis -*- C++ -*--====//
//
// The LLVM Compiler Infrastructure
//
@ -49,6 +49,9 @@ public:
/// the other block frequencies. We do this to avoid using of floating points.
///
BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const;
MachineFunction *getFunction() const;
void view() const;
};
}