[all-commits] [llvm/llvm-project] cbf03a: [MIPS GlobalISel] Select population count (popcount)

petar-avramovic via All-commits all-commits at lists.llvm.org
Mon Jan 27 01:00:47 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cbf03aee6d8193ffd7a4f329feb4217455079da8
      https://github.com/llvm/llvm-project/commit/cbf03aee6d8193ffd7a4f329feb4217455079da8
  Author: Petar Avramovic <Petar.Avramovic at rt-rk.com>
  Date:   2020-01-27 (Mon, 27 Jan 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
    A llvm/test/CodeGen/Mips/GlobalISel/legalizer/ctpop.mir
    A llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/ctpop.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list