pocma...@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

Reply via email to