GCC optimization report
Sharad Singhai
singhai@google.com
Wed Jul 18 07:08:00 GMT 2012
Yes, in addition to what Richard said, I am working on a patch to add
-fopt-report option to gcc. The first users of this optimization
report are the vectorizer passes. The hope is that other passes would
add important optimization info to -fopt-report later. Of course,
there are various dump files as well for more detailed pass-specific
information.
Please see a patch in progress for vectorizer. It started out as
something else, but now adds -fopt-report option for vectorizer.
http://gcc.gnu.org/ml/gcc-patches/2012-07/msg00147.html
Thanks,
Sharad
> ---------- Forwarded message ----------
> From: Richard Guenther <richard.guenther@gmail.com>
> Date: Tue, Jul 17, 2012 at 4:23 AM
> Subject: Re: GCC optimization report
> To: Erotavlas_turbo@libero.it
> Cc: gcc <gcc@gcc.gnu.org>
>
>
> On Tue, Jul 17, 2012 at 12:43 PM, <Erotavlas_turbo@libero.it> wrote:
>> Hi all,
>> I would like to know if GCC provides an option to get a detailed report on
>> the optimization actually performed by the compiler. For example with the
>> Intel C compiler it is possible using the -opt-report. I don't want to look
>> at the assembly file and figure out the optimization.
>
> There is only -ftree-vectorizer-verbose=N currently and the various
> dump-files
> the individual passes produce (-fdump-tree-all[-subflags]
> -fdump-rtl-all[-subflags]).
>
> Richard.
>
>> Thank you
>> Best Regards
>>
>> Salvatore
>> Frandina
>>
>
More information about the Gcc
mailing list