[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
https://bugs.llvm.org/show_bug.cgi?id=50795
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
https://reviews.llvm.org/rG8af333cf1a77f72ed3ccf14afa96a4f8f12e40c4.
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