print_rtx_function: integrate dumping of the CFG into the insn chain
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 12 Oct 2016 14:59:56 +0000 (14:59 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 12 Oct 2016 14:59:56 +0000 (14:59 +0000)
commit4b77ac40f0fe35d541914de0227b5c37d88c619c
tree6f600c5fed34a8cdcd35c7c128cf15b652125813
parent2934018d2785fa77b1e1e4fdd5c92139210b5056
print_rtx_function: integrate dumping of the CFG into the insn chain

gcc/ChangeLog:
* function-tests.c: Include "print-rtl.h".
(selftest::test_expansion_to_rtl): Call print_rtx_function on the
function, and verify what is dumped.
* print-rtl-function.c (print_edge): New function.
(begin_any_block): New function.
(end_any_block): New function.
(can_have_basic_block_p): New function.
(print_rtx_function): Track the basic blocks of insns in the
chain, wrapping those that are within blocks within "(block)"
directives.  Remove the "(cfg)" directive.

From-SVN: r241057
gcc/ChangeLog
gcc/function-tests.c
gcc/print-rtl-function.c