This is the mail archive of the
mailing list for the GCC project.
Re: Indirect memory addresses vs. lra
On Thu, Aug 08, 2019 at 01:25:27PM -0400, Paul Koning wrote:
> > On Aug 8, 2019, at 1:21 PM, Segher Boessenkool <email@example.com> wrote:
> > On Thu, Aug 08, 2019 at 12:43:52PM -0400, Paul Koning wrote:
> >> Indirect addressing is a key feature in size-optimized code.
> > That doesn't mean that LRA has to support it, btw, not necessarily; it
> > may well be possible to do a good job of this in the later passes?
> > Maybe postreload, maybe some peepholes, etc.?
> Possibly. But as Vladimir points out, indirect addressing affects
> register allocation (reducing register pressure).
Yeah, good point, esp. if you have only one or two registers that you
can use for addressing at all. So it will have to happen during (or
before?) RA, alright.