On 01/09/2018 11:28 AM, Richard Biener wrote:
Note that the vectorizer gives up on loops with gathers with no target support for gathers. It could simply open-code the gather though (and properly cost that open-coded variant), that's probably the way to go here.
Man, I wish I had made this comment a few years ago, when Jakub Jelinek implemented support for gather in vectorization *of our loops*.
Before that, I had only seen programmers do it for our code by rewriting the Fortran into something that was completely unreadable.
-- Toon Moene - e-mail: t...@moene.org - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/ Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news