This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: New optimization: Convert local statics into non-statics
On Mon, 21 Jul 2008, Daniel Berlin wrote:
> Hi Nathan,
>
> Given that PRE will now (as of about a week or so ago) eliminate the
> extra loads, and a coming patch will eliminate any extra stores, how
> much benefit is there really to performing this optimization (which
> would be off by default, apparently)?
If PRE covers all cases of this optimization, then it should suffice to
add just the testcases (those testing that particular cases are optimized
/ cannot be optimized, not those testing limitations of a particular
implementation) to make sure it stays properly covered by PRE.
--
Joseph S. Myers
joseph@codesourcery.com