summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-30 10:23:30 +0000
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-30 10:23:30 +0000
commitc8905a57c86a8050088f0bde53cbb70fee2419ce (patch)
tree4e70bf4de9257efe081c1c0f98f589ef7c87e44c /gcc/emit-rtl.c
parentf7ba1b7d392f966c11add872b33479a0057332df (diff)
downloadgcc-c8905a57c86a8050088f0bde53cbb70fee2419ce.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54053 138bc75d-0d04-0410-961f-82ee72b054a4
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 963946a4ed8..8f8f701e17b 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;