About Regmove !!

Michael Matz matz@suse.de
Wed Nov 13 05:21:00 GMT 2002


Hi,

On Tue, 12 Nov 2002, tm wrote:

> Is there a particular reference you have in mind which covers handling
> addressing inheritance in GCSE?
>
> To me, it seems very awkward to have address inheritance handled by GCSE.
>
> In order to generate efficient address inheritance, the addressing mode of
> an instruction may need to be changed. This implies GCSE will need to
> understand all of the target CPU's addressing modes and allowable
> displacements for each one.

I just want to mention that the current regmove doesn't have any of this
information also, and still is effective enough (at least it seems so from
your words).  What's more, it even only reduces the constants under some
fairly narrow constraints (only when both operands have to match in some
insn).  So any optimization doing this probably doesn't need to be _that_
much more intelligent than the current regmove as far as target
dependencies are concerned.


Ciao,
Michael.



More information about the Gcc mailing list