[llvm-bugs] [Bug 50795] [SIMD] __builtin_popcount in loop with 8-bit type should generate i8x16.popcnt

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jul 26 10:15:32 PDT 2021


Thomas Lively <tlively at google.com> changed:

           What    |Removed                     |Added
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 CC|                            |tlively at google.com

--- Comment #3 from Thomas Lively <tlively at google.com> ---
This vectorizes correctly if the input and result vectors are replaced with
arrays. Apparently the vectorizer does not work with non-int, non-pointer PHIs,
which is why the loop vector has to be an array, and it also doesn't work with
extractelement instructions. Unless I missed a way for the backend to relax
these restrictions, this seems to be working as intended in the WebAssembly
backend since

Will mark WAI for now, but happy to revisit this if I missed something.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210726/603f786c/attachment.html>

More information about the llvm-bugs mailing list