aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2002-05-30 03:23:30 -0700
committerDavid S. Miller <davem@gcc.gnu.org>2002-05-30 03:23:30 -0700
commit62a35e6088788bae63480d381be74e5493e39df4 (patch)
tree4e70bf4de9257efe081c1c0f98f589ef7c87e44c /gcc/emit-rtl.c
parent128977c9d0c1d072b7e9d11dd0f9840c3ef79105 (diff)
downloadgcc-62a35e6088788bae63480d381be74e5493e39df4.zip
gcc-62a35e6088788bae63480d381be74e5493e39df4.tar.gz
gcc-62a35e6088788bae63480d381be74e5493e39df4.tar.bz2
rtl.h (clear_emit_caches): Delete.
2002-05-29 David S. Miller <davem@redhat.com> * rtl.h (clear_emit_caches): Delete. * integrate.c (output_inline_function): Don't call it. * emit-rtl.c (restore_emit_status, init_emit): Likewise. (clear_emit_caches): Delete definition. (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise. From-SVN: r54053
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 963946a..8f8f701e 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -151,26 +151,6 @@ static htab_t mem_attrs_htab;
/* A hash table storing all CONST_DOUBLEs. */
static htab_t const_double_htab;
-/* start_sequence and gen_sequence can make a lot of rtx expressions which are
- shortly thrown away. We use two mechanisms to prevent this waste:
-
- For sizes up to 5 elements, we keep a SEQUENCE and its associated
- rtvec for use by gen_sequence. One entry for each size is
- sufficient because most cases are calls to gen_sequence followed by
- immediately emitting the SEQUENCE. Reuse is safe since emitting a
- sequence is destructive on the insn in it anyway and hence can't be
- redone.
-
- We do not bother to save this cached data over nested function calls.
- Instead, we just reinitialize them. */
-
-#define SEQUENCE_RESULT_SIZE 5
-
-static rtx sequence_result[SEQUENCE_RESULT_SIZE];
-
-/* During RTL generation, we also keep a list of free INSN rtl codes. */
-static rtx free_insn;
-
#define first_insn (cfun->emit->x_first_insn)
#define last_insn (cfun->emit->x_last_insn)
#define cur_insn_uid (cfun->emit->x_cur_insn_uid)
@@ -2256,7 +2236,6 @@ restore_emit_status (p)
struct function *p ATTRIBUTE_UNUSED;
{
last_label_num = 0;
- clear_emit_caches ();
}
/* Clear out all parts of the state in F that can safely be discarded
@@ -4656,16 +4635,6 @@ init_virtual_regs (es)
ptr[VIRTUAL_CFA_REGNUM] = virtual_cfa_rtx;
}
-void
-clear_emit_caches ()
-{
- int i;
-
- /* Clear the start_sequence/gen_sequence cache. */
- for (i = 0; i < SEQUENCE_RESULT_SIZE; i++)
- sequence_result[i] = 0;
- free_insn = 0;
-}
/* Used by copy_insn_1 to avoid copying SCRATCHes more than once. */
static rtx copy_insn_scratch_in[MAX_RECOG_OPERANDS];
@@ -4860,8 +4829,6 @@ init_emit ()
last_label_num = 0;
seq_stack = NULL;
- clear_emit_caches ();
-
/* Init the tables that describe all the pseudo regs. */
f->emit->regno_pointer_align_length = LAST_VIRTUAL_REGISTER + 101;