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: The secondary reload


pocmatos@gmail.com (Paulo J. Matos) writes:

> However, there's a specific secondary reload question still bothering me: 
> - I have seen cases where secondary reload is called and sri->icode !=
> CODE_FOR_nothing. In which cases does this happen and should I touch it if
> the reload required no setting for sri->icode?
>
> Now, I will look at some code examples of using secondary reload with
> moves that _sometimes_ require a scratch register. Any tips on where to
> look?

The TARGET_SECONDARY_RELOAD hook should set sri->icode to some value if
there is a specific insn pattern which will do the actual secondary
reload.

A good example for complex secondary reloads is sh_secondary_reload in
config/sh/sh.c.

Ian


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