https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104595
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Last reconfirmed| |2022-02-18 Blocks| |53947 Keywords| |missed-optimization Status|UNCONFIRMED |NEW --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. I think this is a omission somewhere in bool pattern recog since we need a tem = pb[i] != 0 ? -1 : 0; kind of computation to generate a mask suitable for vectorization here. We might have a duplicate bugreport as well. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 [Bug 53947] [meta-bug] vectorizer missed-optimizations