rtx_writer: avoid printing trailing default values
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 7 Nov 2016 15:19:17 +0000 (15:19 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 7 Nov 2016 15:19:17 +0000 (15:19 +0000)
commitb5fbe7164833774eabba67ecd47b3658d8e2c395
tree2a53d93e01ff3266941b8cd229c9472180d2f20d
parent061ee39672f0086c2a9ab6e38f0747d0b9ad18a8
rtx_writer: avoid printing trailing default values

gcc/ChangeLog:
* print-rtl.c (rtx_writer::operand_has_default_value_p): New
method.
(rtx_writer::print_rtx): In compact mode, omit trailing operands
that have the default values.
* print-rtl.h (rtx_writer::operand_has_default_value_p): New
method.
* rtl-tests.c (selftest::test_dumping_insns): Remove empty
label string from expected dump.
(seltest::test_uncond_jump): Remove trailing "(nil)" for REG_NOTES
from expected dump.

From-SVN: r241908
gcc/ChangeLog
gcc/print-rtl.c
gcc/print-rtl.h
gcc/rtl-tests.c