Re: [PATCH] [RFC] Higher-level reporting of vectorization problems

2018-07-03 Thread Richard Biener
On Mon, 2 Jul 2018, Richard Sandiford wrote: > Richard Biener writes: > > On Fri, 22 Jun 2018, David Malcolm wrote: > > > >> NightStrike and I were chatting on IRC last week about > >> issues with trying to vectorize the following code: > >> > >> #include > >> std::size_t f(std::vector> const &

Re: [PATCH] [RFC] Higher-level reporting of vectorization problems

2018-07-02 Thread Richard Sandiford
Richard Biener writes: > On Fri, 22 Jun 2018, David Malcolm wrote: > >> NightStrike and I were chatting on IRC last week about >> issues with trying to vectorize the following code: >> >> #include >> std::size_t f(std::vector> const & v) { >> std::size_t ret = 0; >> for (auto const & w

Re: [PATCH] [RFC] Higher-level reporting of vectorization problems

2018-06-25 Thread Richard Biener
On Fri, 22 Jun 2018, David Malcolm wrote: > NightStrike and I were chatting on IRC last week about > issues with trying to vectorize the following code: > > #include > std::size_t f(std::vector> const & v) { > std::size_t ret = 0; > for (auto const & w: v) > ret += w.si

[PATCH] [RFC] Higher-level reporting of vectorization problems

2018-06-22 Thread David Malcolm
NightStrike and I were chatting on IRC last week about issues with trying to vectorize the following code: #include std::size_t f(std::vector> const & v) { std::size_t ret = 0; for (auto const & w: v) ret += w.size(); return ret; } icc could vectorize it,