aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2017-11-03 01:19:06 +0100
committerSegher Boessenkool <segher@gcc.gnu.org>2017-11-03 01:19:06 +0100
commitf53bd856482af56a7af70bbae243f0c2af296b0e (patch)
tree19998ff665e497b1e4817574df69e74a0eb3a068 /gcc/combine.c
parent89513a1c42a5c671170537a41f4f98ba064e3792 (diff)
downloadgcc-f53bd856482af56a7af70bbae243f0c2af296b0e.zip
gcc-f53bd856482af56a7af70bbae243f0c2af296b0e.tar.gz
gcc-f53bd856482af56a7af70bbae243f0c2af296b0e.tar.bz2
combine: Print insns we try to combine
This adds some extra debug info to the dump file for combine: print the insns that are input to try_combine. I was worried printing more will make the dump file only harder to read, but especially the info from the REG_DEAD notes is invaluable. * combine (try_combine): Print the insns input to try_combine to the dump file. From-SVN: r254365
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index 968e687..eab10c5 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -2771,6 +2771,13 @@ try_combine (rtx_insn *i3, rtx_insn *i2, rtx_insn *i1, rtx_insn *i0,
else
fprintf (dump_file, "\nTrying %d -> %d:\n",
INSN_UID (i2), INSN_UID (i3));
+
+ if (i0)
+ dump_insn_slim (dump_file, i0);
+ if (i1)
+ dump_insn_slim (dump_file, i1);
+ dump_insn_slim (dump_file, i2);
+ dump_insn_slim (dump_file, i3);
}
/* If multiple insns feed into one of I2 or I3, they can be in any