https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102062
--- Comment #10 from Bill Schmidt <wschmidt at gcc dot gnu.org> --- Well, the problem is that we still generate suboptimal code on GCC 11. I don't know whether we want to address that or not. I suppose we aren't going to backport Haochen's lovely patch for sign extensions, and it's probably not worth messing around with variable expansion just for GCC 11... Nick, can you use the -ftree-vectorize -fvect-cost-model=cheap to deal with this (or even use -O3, which is recommended and probably does the same thing)? Or are you holding out for some fix in GCC 11.x?