This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: reload vs adds with clobbers
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Ulrich Weigand <weigand at immd1 dot informatik dot uni-erlangen dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: 30 May 2003 17:51:19 -0700
- Subject: Re: reload vs adds with clobbers
- References: <200305302210.AAA21176@faui11.informatik.uni-erlangen.de>
Ulrich Weigand <weigand@immd1.informatik.uni-erlangen.de> writes:
> DJ Delorie wrote:
>
> >In gen_reload (reload1.c) there's a chunk of code that creates an add
> >insn without going through the usual expanders:
> [snip]
> >What's the right way to address this problem?
>
> We're having the same problem on s390. 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 ...
Yes. In fact, I thought that was already done for xstormy16, but I
probably missed a case...
--
- Geoffrey Keating <geoffk@geoffk.org>