title: Vectorization report call tree
body: <p>I am using <code>GCC7.2.0</code> and have a function as follows:</p>
  
  <pre class="lang-cpp prettyprint-override"><code>auto sadd = [](auto &amp; out, const auto &amp; in, const double factor=1.)
  {
    for (auto i=0u;i&lt;in.size();++i) out[i]+=factor*in[i];
  };
  </code></pre>
  
  <p>that I use everywhere throughout my code, mostly with <code>std::array</code> types.</p>
  
  <p>I would like to know which calls to this lambda have been vectorized and which calls haven't.</p>
  
  <p>Since the lambda is inlined, the vectorization report does not give me information on the call tree, so I don't know where vectorization succeeds and where it fails.</p>
  
  <p>I use the flags <code>-std=c++1z -Ofast -ftree-vectorizer-verbose=9 -fopt-info-all=vec.info</code>.</p>
  
  <p>Is there any way to obtain a vectorization report with a call tree that is readable, or should I just try to read the assembly?</p>