https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102062
--- Comment #14 from Nicholas Piggin <npiggin at gmail dot com> --- (In reply to Bill Schmidt from comment #10) > 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? For my case no but it's only a very small issue in the scheme of things, I only found it by looking at code generation. So you can close immediately if it's fixed upstream, or whatever else you think best. Thanks all.