This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84261] gcc fails to vectorize a function call
- From: "marcin.krotkiewski at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Feb 2018 11:59:45 +0000
- Subject: [Bug c/84261] gcc fails to vectorize a function call
- Auto-submitted: auto-generated
- References: <bug-84261-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84261
--- Comment #3 from Marcin Krotkiewski <marcin.krotkiewski at gmail dot com> ---
(In reply to Richard Biener from comment #1)
> Also vectorization of loops with using vectors isn't supported.
Not sure what you mean. If instead of a function call I do some floating point
computations in test1, e.g.,
#pragma omp declare simd simdlen(4)
double test1(double v1)
{
for(int i=0; i<4; i++){
v1 = v1*1.1;
}
return v1;
}
then the loop is 'vectorized' as expected, i.e., executed for short vector
arguments, and not for scalars.