* [PATCH 1/2] combine: Print insns with the cost dump
@ 2017-06-29 17:18 Segher Boessenkool
0 siblings, 0 replies; only message in thread
From: Segher Boessenkool @ 2017-06-29 17:18 UTC (permalink / raw)
To: gcc-patches; +Cc: Segher Boessenkool
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).
Tested on powerpc64-linux {-m32,-m64}, committing to trunk
Segher
2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
* combine.c (combine_instructions): Print insns to dump_file, together
with their costs.
---
gcc/combine.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gcc/combine.c b/gcc/combine.c
index 73895b6..c49b2b2 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);
+ }
}
}
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-06-29 17:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29 17:18 [PATCH 1/2] combine: Print insns with the cost dump Segher Boessenkool
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).