This is the mail archive of the gcc-patches@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]

Re: [patch] mn10300.md store_movm


On Nov 11, 2000, DJ Delorie <dj@redhat.com> wrote:

> 	* config/mn10300/mn10300.md (store_movm): Note which registers are
> 	really used.

Since this is only used in the prologue, I'm not sure I understand why
it is needed.  Is it to prevent this instruction from being moved
after any other instruction that uses these registers?  In this case,
it would probably be reasonable to also note that it modifies sp,
otherwise it might also be moved after the stack adjustment emitted
after it.  You might have to turn it into an expand, though, so that
it can compute by how much the stack pointer is adjusted.  It would be
nice to make the expand available only after reload_completed, then.
Or maybe you could just mark sp as clobbered.

Of course, none of this is much relevant, since we don't have any
scheduling parameters for the mn10300, so I suppose insns wouldn't be
moved around.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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