[all-commits] [llvm/llvm-project] 131285: [AArch64][GlobalISel] Legalize narrow type G_CTPOPs

Jessica Paquette via All-commits all-commits at lists.llvm.org
Fri May 7 14:52:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1312852040b3190a6cb7d7c1f61fe95a5e930d8d
      https://github.com/llvm/llvm-project/commit/1312852040b3190a6cb7d7c1f61fe95a5e930d8d
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/legalize-ctpop.mir
    M llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Legalize narrow type G_CTPOPs

Using `clampScalar` here because we ought to mark s128 as custom eventually.

(Right now, it will just fall back.)

With this legalization, we get the same code as SDAG:
https://godbolt.org/z/TneoPKrKG

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




More information about the All-commits mailing list