aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2017-06-29 19:28:47 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2017-06-29 19:28:47 +0200
commite9d22c8ab3c3b73a9ed5892e120c869b12eeb85c (patch)
treeb759375789787df69e4174555ade753844543091 /gcc/combine.c
parent357067f243611b9e29367b61a50efe2e78f693c9 (diff)
downloadgcc-e9d22c8ab3c3b73a9ed5892e120c869b12eeb85c.zip
gcc-e9d22c8ab3c3b73a9ed5892e120c869b12eeb85c.tar.gz
gcc-e9d22c8ab3c3b73a9ed5892e120c869b12eeb85c.tar.bz2
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
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c6
1 files changed, 4 insertions, 2 deletions
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);
+ }
}
}