https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52473
--- Comment #11 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- Created attachment 41541 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41541&action=edit Patch for the library, not yet quite correct This is a patch which brings a dramatic speedup for any cshift with dim>1, but it also causes a regression for a test case which I will attach next.