Jean Christophe Beyler <jean.christophe.bey...@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

Reply via email to