This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] disable tree_swap_operands_p when optimizing for sizein fold-const.c
- From: Roger Sayle <roger at eyesopen dot com>
- To: Gábor Lóki <alga at rgai dot hu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 15 Oct 2003 06:24:06 -0600 (MDT)
- Subject: Re: [PATCH] disable tree_swap_operands_p when optimizing for sizein fold-const.c
On Wed, 15 Oct 2003, [ISO-8859-2] Gábor Lóki wrote:
> The http://gcc.gnu.org/ml/gcc-patches/2003-09/msg02012.html patch
> modified the tree_swap_operands_p function which created about 0,15%
> bigger object sizes. The mechanism of the patch shouldn't be used
> when optimizing for size.
>
> The following patch disables the heuristics when optimizing for size.
>
> Ok for mainline?
Ok. [My first approval!]
I'll investigate the underlying cause of the code size increase. Moving
simple variable references to the second operand should have helped with
code size, but this clearly isn't supported by the CSiBE numbers.
Many thanks.
Roger
--