HomePhabricator

[MIPS GlobalISel] Select population count (popcount)

Authored by Petar.Avramovic on Jan 27 2020, 12:59 AM.

Description

[MIPS GlobalISel] Select population count (popcount)

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.

Differential Revision: https://reviews.llvm.org/D73216

Details

Committed
Petar.AvramovicJan 27 2020, 12:59 AM
Differential Revision
D73216: [MIPS GlobalISel] Select population count (popcount)
Parents
rG8bc7ba5b9ee0: [MIPS GlobalISel] Select count trailing zeros
Branches
Unknown
Tags
Unknown