diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2019-02-01 17:26:48 +0100 |
---|---|---|
committer | Segher Boessenkool <segher@gcc.gnu.org> | 2019-02-01 17:26:48 +0100 |
commit | e71ac163553c47c516d2d5e77ba5fedce6ceec47 (patch) | |
tree | 99602bef2dc3ed4c38dcd314a4f88e9f2bd5dcc7 /gcc | |
parent | 09e3944e2b37fcbdbdd65a073c75d60382421165 (diff) | |
download | gcc-e71ac163553c47c516d2d5e77ba5fedce6ceec47.zip gcc-e71ac163553c47c516d2d5e77ba5fedce6ceec47.tar.gz gcc-e71ac163553c47c516d2d5e77ba5fedce6ceec47.tar.bz2 |
combine: Use TDF_DETAILS for "can't combine" dump prints
Some people use the -fdump-rtl-combine dumps (instead of the -da or
-fdump-rtl-combine-all dump), but the "Can't combine iN into iM"
messages do not make any sense if the failed combine attempts are not
printed otherwise. So let's change that.
* combine.c (try_combine): Do not print "Can't combine" messages unless
printing failed combination attempts.
From-SVN: r268453
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/combine.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b34956..fba9fcf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-02-01 Segher Boessenkool <segher@kernel.crashing.org> + + * combine.c (try_combine): Do not print "Can't combine" messages unless + printing failed combination attempts. + 2019-02-01 Martin Jambor <mjambor@suse.cz> PR hsa/87863 diff --git a/gcc/combine.c b/gcc/combine.c index c108f65..7e1992f 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3078,21 +3078,21 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0, /* Verify that I2 and maybe I1 and I0 can be combined into I3. */ if (!can_combine_p (i2, i3, i0, i1, NULL, NULL, &i2dest, &i2src)) { - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Can't combine i2 into i3\n"); undo_all (); return 0; } if (i1 && !can_combine_p (i1, i3, i0, NULL, i2, NULL, &i1dest, &i1src)) { - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Can't combine i1 into i3\n"); undo_all (); return 0; } if (i0 && !can_combine_p (i0, i3, NULL, NULL, i1, i2, &i0dest, &i0src)) { - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Can't combine i0 into i3\n"); undo_all (); return 0; |