Dump probability for edges a frequency for BBs
authorMartin Liska <mliska@suse.cz>
Thu, 24 Nov 2016 12:58:45 +0000 (13:58 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 24 Nov 2016 12:58:45 +0000 (12:58 +0000)
commit0d56d3c17b709688ec817372311cde1cc445ae4b
tree22dab002d153bc4f818cd59682df2fe75ecfbe79
parent8cac4d85875ff23588908341fdd69fb4c39a7210
Dump probability for edges a frequency for BBs

* gimple-pretty-print.c (dump_edge_probability): New function.
(dump_gimple_switch): Dump label edge probabilities.
(dump_gimple_cond): Likewise.
(dump_gimple_label): Dump
(dump_gimple_bb_header): Dump basic block frequency.
(pp_cfg_jump): Replace e->dest argument with e.
(dump_implicit_edges): Likewise.
* tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at):
Use gimple_bb (at) instead of at->bb.
* gcc.dg/builtin-unreachable-6.c: Update test to not to scan
parts for frequencies/probabilities.
* gcc.dg/pr34027-1.c: Likewise.
* gcc.dg/strict-overflow-2.c: Likewise.
* gcc.dg/tree-ssa/20040703-1.c: Likewise.
* gcc.dg/tree-ssa/builtin-sprintf-2.c: Likewise.
* gcc.dg/tree-ssa/pr32044.c: Likewise.
* gcc.dg/tree-ssa/vector-3.c: Likewise.
* gcc.dg/tree-ssa/vrp101.c: Likewise.
* gcc.dg/tree-ssa/dump-2.c: New test.

From-SVN: r242837
13 files changed:
gcc/ChangeLog
gcc/gimple-pretty-print.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-unreachable-6.c
gcc/testsuite/gcc.dg/pr34027-1.c
gcc/testsuite/gcc.dg/strict-overflow-2.c
gcc/testsuite/gcc.dg/tree-ssa/20040703-1.c
gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-2.c
gcc/testsuite/gcc.dg/tree-ssa/dump-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/pr32044.c
gcc/testsuite/gcc.dg/tree-ssa/vector-3.c
gcc/testsuite/gcc.dg/tree-ssa/vrp101.c
gcc/tree-ssa-loop-ivopts.c