[Bug tree-optimization/98113] [11 Regression] popcnt is not vectorized on s390 since f5e18dd9c7da

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 3 10:59:20 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98113

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #49668|0                           |1
        is obsolete|                            |

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Created attachment 49669
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49669&action=edit
patch

Needs -mavx512vpopcntdq for x86.  The attached is a completed patch, costing
still (as for CTORs) fails to account the root stmts in the scalar cost part.

The testcase is probably going to FAIL too much, there's no effective target
keyword for popcntsi vectorization.

I've made it a non-loop as well since on x86 loop vectorization handles it
otherwise.


More information about the Gcc-bugs mailing list