[Kernel-meetup] Getting optimization report from g++

Girish Joshi girish946 at gmail.com
Sun May 3 23:22:10 PDT 2020


Hello Chaitanya,
you can try following flags.

-fopt-info-vec or -fopt-info-vec-optimized: The compiler will log
which loops (by line N°) are being vector optimized.
-fopt-info-vec-missed: Detailed info about loops not being vectorized,
and a lot of other detailed information.
-fopt-info-vec-note: Detailed info about all loops and optimizations being done.
-fopt-info-vec-all: All previous options together.

Girish Joshi
girishjoshi.io

On Mon, May 4, 2020 at 3:29 AM Chaitanya Kukde
<chaitanya.kukde at gmail.com> wrote:
>
> Hello all,
>
> Hope you are okay in this tough time.
>
> For a course assignment I had to use Intel C++ Compiler and it had a
> nifty little option called -qopt-report
> (https://software.intel.com/en-us/cpp-compiler-developer-guide-and-reference-qopt-report-qopt-report).
> Is there a similar option in gcc to get compiler optimization reports
> (specifically pertaining to vector optimizations)? I found one called
> -fopt-info-all but it was filed under "options for GCC developers" and
> the report is significantly difficult to read than the Intel one.
>
> Was wondering if I was missing something.
>
> Cheers!
> Chaitanya
> _______________________________________________
> Kernel-meetup mailing list
> Kernel-meetup at lists.reserved-bit.com
> http://lists.reserved-bit.com/listinfo.cgi/kernel-meetup-reserved-bit.com



More information about the Kernel-meetup mailing list