https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97770
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-11-10
Ever confirmed|0 |1
Blocks| |53947
Status|UNCONFIRMED |NEW
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
What's missing is middle-end folding support to narrow popcount to the
appropriate internal function call with byte/half-word width when target
support
is available. But I'm quite sure there's no scalar popcount instruction
operating on half-word or byte pieces of a GPR?
Alternatively the vectorizer can use patterns to do this.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947
[Bug 53947] [meta-bug] vectorizer missed-optimizations