This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: reload vs adds with clobbers
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: dj at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 30 May 03 18:25:01 EDT
- Subject: Re: reload vs adds with clobbers
> The way I've fixed it is to prevent gen_reload from ever taking that
> path by marking all PLUS expressions that would otherwise go there
> as needing a secondary reload (via SECONDARY_INPUT_RELOAD_CLASS) and
> doing the right thing in reload_insi ...
There's got to be a better way to handle this situation. Why can't
reload just use the right expander?
What's "right"? If an addition needs a scratch register (it was said
that it had a CLOBBER), the only way to produce that is via the secondary
reloads. The approach above sounds exactly correct.