aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/combine.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2f339cc..dac1d7a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * combine.c (combine_instructions): Print insns to dump_file, together
+ with their costs.
+
2017-06-29 Jan Hubicka <hubicka@ucw.cz>
* asan.c (asan_emit_stack_protection): Update.
diff --git a/gcc/combine.c b/gcc/combine.c
index 2d49bc2..e993826 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -1213,8 +1213,10 @@ combine_instructions (rtx_insn *f, unsigned int nregs)
INSN_COST (insn) = insn_rtx_cost (PATTERN (insn),
optimize_this_for_speed_p);
if (dump_file)
- fprintf (dump_file, "insn_cost %d: %d\n",
- INSN_UID (insn), INSN_COST (insn));
+ {
+ fprintf (dump_file, "insn_cost %d for ", INSN_COST (insn));
+ dump_insn_slim (dump_file, insn);
+ }
}
}