diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-04 20:56:16 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-09-04 20:56:16 +0000 |
commit | b1621d8e8ef8850df25fef9f83e7bcab8928199b (patch) | |
tree | b344b2b4637503dc3ad9653c7e57435543542096 /gcc/genautomata.c | |
parent | 1f9a257f0f346c90b2e3c9e2420a1a7f0a1ebf61 (diff) | |
download | gcc-b1621d8e8ef8850df25fef9f83e7bcab8928199b.tar.gz |
insn_latency takes a pair of rtx_insn
gcc/
2014-09-04 David Malcolm <dmalcolm@redhat.com>
* genattr.c (main): Within the prototype of insn_latency written
out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
* genautomata.c (output_internal_maximal_insn_latency_func):
Within the implementation of insn_latency written out to
insn-automata.c, strengthen both params from rtx to rtx_insn *,
eliminating a pair of checked casts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214921 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/genautomata.c b/gcc/genautomata.c index a4501e94a66..8cf81b054fe 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -8477,16 +8477,10 @@ output_internal_maximal_insn_latency_func (void) static void output_insn_latency_func (void) { - fprintf (output_file, "int\n%s (rtx uncast_%s, rtx uncast_%s)\n", + fprintf (output_file, "int\n%s (rtx_insn *%s, rtx_insn *%s)\n", INSN_LATENCY_FUNC_NAME, INSN_PARAMETER_NAME, INSN2_PARAMETER_NAME); fprintf (output_file, "{\n int %s, %s;\n", INTERNAL_INSN_CODE_NAME, INTERNAL_INSN2_CODE_NAME); - fprintf (output_file, - " rtx_insn *%s = safe_as_a <rtx_insn *> (uncast_%s);\n", - INSN_PARAMETER_NAME, INSN_PARAMETER_NAME); - fprintf (output_file, - " rtx_insn *%s = safe_as_a <rtx_insn *> (uncast_%s);\n", - INSN2_PARAMETER_NAME, INSN2_PARAMETER_NAME); output_internal_insn_code_evaluation (INSN_PARAMETER_NAME, INTERNAL_INSN_CODE_NAME, 0); output_internal_insn_code_evaluation (INSN2_PARAMETER_NAME, |