This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]