[all-commits] [llvm/llvm-project] de3038: [AMDGPU] Avoid redundant calls to numBits in AMDGP...

Abinav Puthan Purayil via All-commits all-commits at lists.llvm.org
Fri Oct 15 07:20:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de3038400b163d91dca743210ce9b10001411208
      https://github.com/llvm/llvm-project/commit/de3038400b163d91dca743210ce9b10001411208
  Author: Abinav Puthan Purayil <abinav.puthanpurayil at amd.com>
  Date:   2021-10-15 (Fri, 15 Oct 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp

  Log Message:
  -----------
  [AMDGPU] Avoid redundant calls to numBits in AMDGPUCodeGenPrepare::replaceMulWithMul24().

The isU24() and isI24() calls numBits to make its decision. This change
replaces them with the internal numBits call so that we can use its
result for the > 32 bit width cases.

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




More information about the All-commits mailing list