[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: teaching gcc's optimiser new tricks



On Mon, Aug 12, 2002 at 11:35:50PM +0100, Nicholas Clark wrote:
> I will test the compiler bootstraps tomorrow, although anyone else with
> CPU to burn (at better still gcc 3.1.1 sources readily to hand) is welcome
> to beat me to it.

For some irritating reason (maybe K StrongARMs, which is still my own fault
for insisting on retaining) I can't get gcc 3.2 to bootstrap.
However this:

> --- gcc-2.95.2-arm6/gcc/config/arm/arm.md	Mon Aug 28 14:31:18 2000
> +++ gcc-2.95.2-arm6-new/gcc/config/arm/arm.md	Mon Aug 12 23:23:57 2002
> @@ -4667,6 +4667,9 @@
>    if (GET_CODE (operands[1]) == GE && operands[3] == const0_rtx)
>      return \"mvn\\t%0, %2\;mov\\t%0, %0, lsr #31\";
>  
> +  if (GET_CODE (operands[1]) == EQ && operands[3] == const0_rtx)
> +    return \"rsbs\\t%0, %2, #1\;movls\\t%0, #0\";
> +
>    if (GET_CODE (operands[1]) == NE)
>      {
>        if (which_alternative == 1)
> 
> 

does bootstrap the source code I have for gcc-2.95.2-arm6
(not sure what or who the arm6 patch was).

File sizes drop slightly. For example cc1 is now 4298093, was 4298641
a saving of 548 bytes (0.0127%). But every little helps. What's the best
way to proceed?

Nicholas Clark
-- 
Even better than the real thing:	http://nms-cgi.sourceforge.net/



Reply to: