From: Segher Boessenkool Date: Thu, 29 Jun 2017 17:28:47 +0000 (+0200) Subject: combine: Print insns with the cost dump X-Git-Tag: basepoints/gcc-9~6265 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e9d22c8ab3c3b73a9ed5892e120c869b12eeb85c;p=thirdparty%2Fgcc.git combine: Print insns with the cost dump In the combine dump file, at the start there is a list of the RTL cost of every insn. The only thing listed about the insns is the UID though. To make it more useful, this patch prints the insn itself as well (in slim format). * combine.c (combine_instructions): Print insns to dump_file, together with their costs. From-SVN: r249802 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2f339ccb3b19..dac1d7af9a06 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-29 Segher Boessenkool + + * combine.c (combine_instructions): Print insns to dump_file, together + with their costs. + 2017-06-29 Jan Hubicka * asan.c (asan_emit_stack_protection): Update. diff --git a/gcc/combine.c b/gcc/combine.c index 2d49bc2233c9..e99382685c35 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); + } } }