[all-commits] [llvm/llvm-project] edaf6a: [AMDGPU][GISel] Combine G_INSERT_VECTOR_ELT to G_S...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Wed Oct 19 04:03:07 PDT 2022


  Branch: refs/heads/madmix-mostrecent
  Home:   https://github.com/llvm/llvm-project
  Commit: edaf6a07a4aafd963ea958703890d03ab58ff2dd
      https://github.com/llvm/llvm-project/commit/edaf6a07a4aafd963ea958703890d03ab58ff2dd
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUCombine.td
    M llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
    A llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-insertvecelt-to-shufflevector.mir

  Log Message:
  -----------
  [AMDGPU][GISel] Combine G_INSERT_VECTOR_ELT to G_SHUFFLE_VECTOR

Depends on D134967

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


  Commit: 007ef6fa4d89f7e60a82af8c7cc004a6204fd72b
      https://github.com/llvm/llvm-project/commit/007ef6fa4d89f7e60a82af8c7cc004a6204fd72b
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

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

  Log Message:
  -----------
  [AMDGPU][GISel] Constrain selected operands in selectG_BUILD_VECTOR

Small bugfix. Currently harmless but a case in D134354 triggers it.

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


  Commit: 6a9271d2d2b3a8a56725badf922152c388eea9e4
      https://github.com/llvm/llvm-project/commit/6a9271d2d2b3a8a56725badf922152c388eea9e4
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2022-10-19 (Wed, 19 Oct 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUGISel.td
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
    M llvm/lib/Target/AMDGPU/VOP3PInstructions.td
    M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-ext-fma.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-add-ext-mul.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-sub-ext-mul.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fma-sub-ext-neg-mul.ll
    M llvm/test/CodeGen/AMDGPU/mad-mix-hi.ll
    M llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll
    M llvm/test/CodeGen/AMDGPU/mad-mix.ll

  Log Message:
  -----------
  [AMDGPU][GlobalISel] Support mad/fma_mix selection

Adds support for selecting the following instructions using GlobalISel:
- v_mad_mix/v_fma_mix
- v_mad_mixhi/v_fma_mixhi
- v_mad_mixlo/v_fma_mixlo

To select those instructions properly, some additional changes were
needed which impacted other tests as well.

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


Compare: https://github.com/llvm/llvm-project/compare/edaf6a07a4aa%5E...6a9271d2d2b3


More information about the All-commits mailing list