[Bug tree-optimization/84106] gcc is not able to vectorize code for 1D array, but does so for 2D array of the same size
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 30 09:22:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84106
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu.org
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Try -fno-tree-loop-distribute-patterns. The test2 loop is recognized as memcpy
and expanded as such. Theory (and practice?) is that the emitted rep movsq
is faster than the vectorized loop.
More information about the Gcc-bugs
mailing list