[all-commits] [llvm/llvm-project] ef1f27: [GlobalIsel][X86] Legalize G_CTPOP and G_CTLZ

tschuett via All-commits all-commits at lists.llvm.org
Tue May 16 13:14:12 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef1f27d67c4ddc84f346d001af4914beb0ca6a1a
      https://github.com/llvm/llvm-project/commit/ef1f27d67c4ddc84f346d001af4914beb0ca6a1a
  Author: Thorsten Schütt <schuett at gmail.com>
  Date:   2023-05-16 (Tue, 16 May 2023)

  Changed paths:
    M llvm/lib/Target/X86/X86LegalizerInfo.cpp
    M llvm/lib/Target/X86/X86LegalizerInfo.h
    A llvm/test/CodeGen/X86/GlobalISel/legalize-bswap.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-constant.mir
    A llvm/test/CodeGen/X86/GlobalISel/legalize-ctpop.mir
    A llvm/test/CodeGen/X86/GlobalISel/legalize-leading-zeros.mir

  Log Message:
  -----------
  [GlobalIsel][X86] Legalize G_CTPOP and G_CTLZ

G_BSWAP was reverted -> added to this diff.

check plan: ninja check-llvm-codegen-x86

Future work: G_SUB and G_ZEXT need some modernization.

Reviewed By: arsenm

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




More information about the All-commits mailing list