[all-commits] [llvm/llvm-project] d9d251: AMDGPU/GlobalISel: Rework legalization for extract...

petar-avramovic via All-commits all-commits at lists.llvm.org
Mon Jan 10 04:25:06 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d9d2516aafb991f2e1bef64ab28da91a43efbdda
      https://github.com/llvm/llvm-project/commit/d9d2516aafb991f2e1bef64ab28da91a43efbdda
  Author: Petar Avramovic <Petar.Avramovic at amd.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

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

  Log Message:
  -----------
  AMDGPU/GlobalISel: Rework legalization for extract/insert vector elt

Use G_MERGE_VALUES and G_UNMERGE_VALUES on vector elements instead of
G_EXTRACT and G_INSERT when doing custom legalization for
G_EXTRACT_VECTOR_ELT and G_INSERT_VECTOR_ELT.
With this approach legalization artifact combiner gets direct access
to all vector elements.

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




More information about the All-commits mailing list