This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Kill gen_sequence


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]