[Bug tree-optimization/87915] emit warning if (explicit) vectorization failed

2018-11-07 Thread hoganmeier at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87915

--- Comment #2 from krux  ---
Yeah I'm using -fopt-info for manual performance analysis but that can't be
enabled in the normal build as it's too noisy.
Furthermore a proper warning can be turned into an error to ensure that
developer expectations are met by the compiler.

[Bug tree-optimization/87915] emit warning if (explicit) vectorization failed

2018-11-07 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87915

Richard Biener  changed:

   What|Removed |Added

   Keywords||diagnostic, openmp
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-11-07
 CC||jakub at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener  ---
You could use -fopt-info-vec-missed but that warns about more cases than just
#pragma omp simd ones.

Thus confirmed.

I don't think we want to add -Wpass-failed but -Wopenmp might warn about
"unhandled" (unoptimized) OMP constructs?