[all-commits] [llvm/llvm-project] 0b066e: [AArch64] add GlobalIsel support for scalar CNT in...

Ties Stuij via All-commits all-commits at lists.llvm.org
Fri Jan 6 03:09:01 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b066e02a6794fc086a89c38eafcb76a224fee59
      https://github.com/llvm/llvm-project/commit/0b066e02a6794fc086a89c38eafcb76a224fee59
  Author: Ties Stuij <ties.stuij at arm.com>
  Date:   2023-01-06 (Fri, 06 Jan 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-ctpop-no-implicit-float.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-ctpop.mir

  Log Message:
  -----------
  [AArch64] add GlobalIsel support for scalar CNT instruction

When feature CSSC is available we should use instruction CNT for s32, s64 and
s128 types in GlobalIsel's G_CTPOP.

spec:
https://developer.arm.com/documentation/ddi0602/2022-09/Base-Instructions/CNT--Count-bits-

Reviewed By: aemerson

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




More information about the All-commits mailing list