[PATCH] D73216: [MIPS GlobalISel] Select population count (popcount)
Petar Avramovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 10:14:39 PST 2020
Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: atanasyan, petarj.
Herald added subscribers: llvm-commits, volkan, jrtc27, hiraditya, arichardson, rovka, sdardis.
Herald added a project: LLVM.
G_CTPOP is generated from llvm.ctpop.<type> intrinsics, clang generates
these intrinsics from __builtin_popcount and __builtin_popcountll.
Add lower and narrow scalar for G_CTPOP.
Lower G_CTPOP for MIPS32.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73216
Files:
llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
llvm/test/CodeGen/Mips/GlobalISel/legalizer/ctpop.mir
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/ctpop.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73216.239641.patch
Type: text/x-patch
Size: 13573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/5ca64aa6/attachment.bin>
More information about the llvm-commits
mailing list