This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH GCC]Relax the probability condition in CE pass when optimizing for code size
- From: Joern Rennecke <joern dot rennecke at embecosm dot com>
- To: Bin Cheng <bin dot cheng at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 25 Mar 2013 08:52:52 -0400
- Subject: Re: [PATCH GCC]Relax the probability condition in CE pass when optimizing for code size
- References: <000501ce2926$88ffe1d0$9affa570$ at firstname.lastname@example.org>
Quoting Bin Cheng <email@example.com>:
During the work I observed passes before combine might interfere with CE
pass, so this patch is enabled for ce2/ce3 after combination pass.
It is tested on x86/thumb2 for both normal and Os. Is it ok for trunk?
There are bound to be target and application specific variations on which
scaling factors work best.
2013-03-25 Bin Cheng <firstname.lastname@example.org>
* ifcvt.c (ifcvt_after_combine): New static variable.
It would make more sense to pass in the scale factor as a an argument to
if_convert. And get the respective values from a set of gcc parameters,
so they can be tweaked by ports and/or by a user/ML learning framework
(e.g. Milepost) supplying the appropriate --param option.