[llvm] r196183 - Added MachineBlockFrequencyInfo::view for displaying the block frequency propagation graph via graphviz.
Meador Inge
meadori at codesourcery.com
Tue Dec 3 09:18:21 PST 2013
On 12/02/2013 06:49 PM, Michael Gottesman wrote:
> Author: mgottesman
> Date: Mon Dec 2 18:49:33 2013
> New Revision: 196183
>
> URL: http://llvm.org/viewvc/llvm-project?rev=196183&view=rev
> Log:
> 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.
Nice.
> +static cl::opt<GVDAGType>
> +ViewMachineBlockFreqPropagationDAG("view-machine-block-freq-propagation-dags",
> + cl::Hidden,
> + cl::desc("Pop up a window to show a dag displaying how machine block "
> + "frequencies propgate through the CFG."),
s/propgate/propagate/
> + cl::values(
> + clEnumValN(GVDT_None, "none",
> + "do not display graphs."),
> + clEnumValN(GVDT_Fraction, "fraction", "display a graph using the "
> + "fractional block frequency representation."),
> + clEnumValN(GVDT_Integer, "integer", "display a graph using the raw "
> + "integer fractional block frequency representation."),
> + clEnumValEnd));
--
Meador Inge
CodeSourcery / Mentor Embedded
More information about the llvm-commits
mailing list