This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Kill gen_sequence
- From: Jan Hubicka <jh at suse dot cz>
- To: law at redhat dot com
- Cc: "David S. Miller" <davem at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Fri, 7 Jun 2002 21:12:36 +0200
- Subject: Re: [RFC] Kill gen_sequence
- References: <20020606.202600.40740199.davem@redhat.com> <14094.1023477033@porcupine.cygnus.com>
> refer to the same hard register -- but is it a requirement that each rtx
> for a hard register be distinct? If we can share hard register rtxs of
> the same mode, then we can eliminate a ton of calls to gen_rtx_REG and
> ggc_alloc.
We already do create shared instances of hard registers. Most notable
ones are frame_pointer_rtx and friends. These also needs to remain
unique, so we can't use simple hash table and unionize all hard
registers with same code, but I don't think it is problem to avoid
gen_rtx_REG and create shared instances.
Honza
>
> jeff