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: Machine description


Jean Christophe Beyler <jean.christophe.beyler@gmail.com> writes:

> For the moment, no change, the expansion code is actually not used in
> this case because GCC only presents me with the load from a global
> during or after reload. Therefore, it's already done and he doesn't
> seem to want to change his ways. I haven't played with the rtx_cost
> but that's my next step.

A load from a global variable should certainly be seen before reload,
unless your insn patterns permit addition, or whatever, using a memory
address.

It's true in any case that you will sometimes see these loads during
reload, and you will have to cope with that.  However, that should not
be the common case--it should only happen when a register is spilled.

Ian


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