[all-commits] [llvm/llvm-project] 46adcc: [AMDGPU] Improve Codegen for build_vector

Julien Pagès via All-commits all-commits at lists.llvm.org
Wed May 12 06:18:10 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 46adccc5cc1095f57b65fb2a17a4a023ccc77eb9
      https://github.com/llvm/llvm-project/commit/46adccc5cc1095f57b65fb2a17a4a023ccc77eb9
  Author: Julien Pagès <julien.pages at amd.com>
  Date:   2021-05-12 (Wed, 12 May 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstructions.td
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/lib/Target/AMDGPU/SIInstructions.td
    M llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
    M llvm/test/CodeGen/AMDGPU/fcanonicalize.f16.ll
    M llvm/test/CodeGen/AMDGPU/fexp.ll
    M llvm/test/CodeGen/AMDGPU/fpow.ll
    M llvm/test/CodeGen/AMDGPU/fptrunc.f16.ll
    M llvm/test/CodeGen/AMDGPU/frem.ll
    M llvm/test/CodeGen/AMDGPU/llvm.cos.f16.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log.f16.ll
    M llvm/test/CodeGen/AMDGPU/llvm.log10.f16.ll
    M llvm/test/CodeGen/AMDGPU/llvm.rint.f16.ll
    M llvm/test/CodeGen/AMDGPU/llvm.round.ll
    M llvm/test/CodeGen/AMDGPU/llvm.sin.f16.ll
    M llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll
    A llvm/test/CodeGen/AMDGPU/v_pack.ll

  Log Message:
  -----------
  [AMDGPU] Improve Codegen for build_vector

Improve the code generation of build_vector.
Use the v_pack_b32_f16 instruction instead of
v_and_b32 + v_lshl_or_b32

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

Patch by Julien Pagès!




More information about the All-commits mailing list