This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improve SH literal pool generation.
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: naveens at noida dot hcltech dot com (Naveen Sharma, Noida)
- Cc: gcc-patches at gcc dot gnu dot org, rakeshku at noida dot hcltech dot com (Rakesh Kumar - Software Noida)
- Date: Wed, 22 Oct 2003 19:14:47 +0100 (BST)
- Subject: Re: [PATCH] Improve SH literal pool generation.
> This had been suggested Joern Rennecke.
> http://gcc.gnu.org/ml/gcc/2003-04/msg01453.html
> and some of his earlier messages.
> Also see these comments in sh.c (add_constant)
> 2659 /* ??? This stuff should be done at the same time that we shorten
> branches.
> 2660 As it is now, we must assume that all branches are the maximum size,
> and
> 2661 this causes us to almost always output constant pools sooner than
> 2662 necessary. */
>
> The strategy is more or less as suggested in the link.
I was really thinking of doing a full-blown branch shortening at the
same time as constant pool allocation and branch splitting, also
putting the constants from branch spiltting into constant pools.
And all of that in machine-independent code.