This is the mail archive of the gcc-patches@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: init_reg_autoinc bug and how to describe regs that can't autoincdec


> So, the main question is, how should this code change to also work for
> a register class that can't be used for autoincdeced but doesn't need
> secondary reloads at all?

I don't think it needs to.  This is 13 years old, but my recollection is
that we wanted to avoid the need for secondary reloads on autoincs, 
either because of efficiency or because, at that time at least, reload
didn't have the code to do it.

But if there *is* no secondary reload, then what's the problem with putting
a pseudo into an arbitrary register?  Reload can generate the appropriate
moves to make it work.


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