[all-commits] [llvm/llvm-project] 8de2da: GlobalISel: Fix lowering of G_CTLZ/G_CTTZ

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri Feb 7 06:57:55 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8de2dad9e0d729663f83d80f9a9e9b98ef41992e
      https://github.com/llvm/llvm-project/commit/8de2dad9e0d729663f83d80f9a9e9b98ef41992e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-02-07 (Fri, 07 Feb 2020)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-ctlz.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-cttz.mir
    R llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-ctlz.mir
    R llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-cttz.mir
    M llvm/test/CodeGen/ARM/GlobalISel/arm-legalize-bitcounts.mir
    M llvm/unittests/CodeGen/GlobalISel/LegalizerHelperTest.cpp

  Log Message:
  -----------
  GlobalISel: Fix lowering of G_CTLZ/G_CTTZ

The type passed to lower was invalid, so I'm not sure how this was
even working before. The source and destination type also do not have
to match, so make sure to use the right ones.




More information about the All-commits mailing list