Understanding gcc 4.9.2 auto-vectorization output

后端 未结 1 1680
我在风中等你
我在风中等你 2020-12-09 22:12

I am trying to learn gcc auto-vectorization module. After reading documentation from here.

Here is what I tried (debian jessie amd64):

$ cat ex1.c
in         


        
相关标签:
1条回答
  • 2020-12-09 22:35

    Actually digging in gcc online doc, I finally found out that I should use instead: -fopt-info-vec-optimized (or maybe -fopt-info-vec-all). See here and here:

    optimized: Print information when an optimization is successfully applied. It is up to a pass to decide which information is relevant. For example, the vectorizer passes print the source location of loops which are successfully vectorized.

    missed: Print information about missed optimizations. Individual passes control which information to include in the output.

    note: Print verbose information about optimizations, such as certain transformations, more detailed messages about decisions etc.

    all: Print detailed optimization information. This includes ‘optimized’, ‘missed’, and ‘note’.

    0 讨论(0)
提交回复
热议问题