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: Joern Rennecke <joern dot rennecke at superh dot com>
- To: tm_gccmail at mail dot kloo dot net
- Cc: aoliva at redhat dot com, gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Feb 2003 20:35:27 +0000
- Subject: Re: SH target - disable @(r0,rm) addressing mode?
- Organization: SuperH UK Ltd.
- References: <Pine.LNX.4.21.0302051214390.10155-100000@mail.kloo.net>
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.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658