This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: undocumented optimization options
- From: Razya Ladelsky <RAZYA at il dot ibm dot com>
- To: "Richard Guenther" <richard dot guenther at gmail dot com>
- Cc: ctice at apple dot com, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, "Gerald Pfeifer" <gerald at pfeifer dot com>, "Janis Johnson" <janis187 at us dot ibm dot com>, "Mark Mitchell" <mark at codesourcery dot com>, stevenb dot gcc at gmail dot com, "Kenneth Zadeck" <zadeck at naturalbridge dot com>
- Date: Mon, 12 Nov 2007 16:27:53 +0200
- Subject: Re: undocumented optimization options
"Richard Guenther" <richard.guenther@gmail.com> wrote on 12/11/2007
12:28:05:
> On Nov 12, 2007 10:06 AM, Razya Ladelsky <RAZYA@il.ibm.com> wrote:
> > Kenneth Zadeck <zadeck@naturalbridge.com> wrote on 07/11/2007
19:49:29:
> >
> > > Razya Ladelsky wrote:
> > > > Mark Mitchell <mark@codesourcery.com> wrote on 05/11/2007
01:51:33:
> > > >
> > > >
> > > >> Gerald Pfeifer wrote:
> > > >>
> > > >>> On Thu, 1 Nov 2007, Janis Johnson wrote:
> > > >>>
> > > >>>> -fipa-cp steven
> > > >>>> -fipa-matrix-reorg razya
> > > >>>> -fipa-pure-const zadeck (enabled with -O)
> > > >>>> -fipa-reference zadeck (enabled with -O)
> > > >>>> -fipa-type-escape zadeck
> > > >>>> -fvar-tracking-uninit ctice
> > > >>>>
> > > >>>>
> > > >
> > > > I'll add documentation for fipa-cp and fipa-matrix-reorg as soon
as
> > > > Zadeck commits his changes to invoke.texi.
> > > >
> > > > Thanks,
> > > > Razya
> > > >
> > > >
> >
> > Hi,
> >
> > This patch adds documentation for fipa-cp and -fipa-matrix-reorg.
> >
> > 2007-11-12 Razya Ladelsky <razya@il.ibm.com>
> >
> > * doc/invoke.texi (fipa-cp, fipa-matrix-reorg): Add documentation.
> >
> > Ok to commit?
>
> Please be more verbose. While people might have an idea what
interprocedural
> constant propagation is (though they probably don't immediately see that
it
> might increase code-size by versioning functions), certainly matrix
flattening
> deserves more comments.
>
I was under the impression that in invoke.texi we just document the
options.
The optimizations' full documentation is at the corresponding files.
(ipa-cp.c and matrix-reorg.c)
Do you think a more detailed description of these optimizations
in doc/invoke.texi is necessary?
Thanks,
Razya
> Of course we might stay with the sparse documentation and just say in
> addition "This optimization is experimental." to steer people away from
it ;)
>
> Richard.
>
> For reference here's part of the patch:
>
> @@ -5714,6 +5715,14 @@
> @opindex fipa-pta
> Perform interprocedural pointer analysis.
>
> +@item -fipa-cp
> +@opindex fipa-cp
> +Perform interprocedural constant propagation.
> +
> +@item -fipa-matrix-reorg
> +@opindex fipa-matrix-reorg
> +Perform matrix flattening and transposing.
> +