This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: SH target - disable @(r0,rm) addressing mode?
- From: tm_gccmail at mail dot kloo dot net
- To: Joern Rennecke <joern dot rennecke at superh dot com>
- Cc: aoliva at redhat dot com, gcc-bugs at gcc dot gnu dot org
- Date: Wed, 5 Feb 2003 13:07:05 -0800 (PST)
- Subject: Re: SH target - disable @(r0,rm) addressing mode?
On Wed, 5 Feb 2003, Joern Rennecke wrote:
> tm_gccmail@mail.kloo.net wrote:
> > I don't think this allows the scheduler to move the loads, though?
> Well, if the bulk of the arithmetic doesn't use r0, its relative
> position to the loads can be changed. If that is moving the loads
> or moving the arithmetic is a matter of opinion ;-)
>
> > The primary problem (as I see it) is the dependency of each load on the r0
> > register, which limits the scheduling freedom.
>
> If r0 was only used by loads, that would be a non-issue.
>
> > Maybe reenabling the first instruction scheduling pass is a cleaner
> > solution?
>
> Yes, certainly. We'd have to get it to actually work and also prevent it
> from increasing register pressure too much, though.
Most of the extra register pressure seems to come from related addresses.
We may be able to reduce this additional register pressure by coaxing the
new-ra rematerialization to handle related addresses (which it currently
doesn't). Perhaps this would solve most of the problem.
Toshi