[all-commits] [llvm/llvm-project] 88421e: [AMDGPU] Trim zero components from buffer and imag...

Mateja Marjanovic via All-commits all-commits at lists.llvm.org
Mon Jun 5 03:30:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88421ea973916e60c34beb26597a5fc33f83dd8f
      https://github.com/llvm/llvm-project/commit/88421ea973916e60c34beb26597a5fc33f83dd8f
  Author: Mateja Marjanovic <mmarjano at amd.com>
  Date:   2023-06-05 (Mon, 05 Jun 2023)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsAMDGPU.td
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
    A llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-simplify-image-buffer-stores.ll

  Log Message:
  -----------
  [AMDGPU] Trim zero components from buffer and image stores

For image and buffer stores the default behaviour on GFX11 and
older is to set all unset components to zero. So if we pass
only X component it will be the same as X000, or XY same as XY00.

This patch simplifies the passed vector of components in InstCombine
by removing zero components from the end.

For image stores it also trims DMask if necessary.

Reviewed by: arsenm, foad, nhaehnle, piotr




More information about the All-commits mailing list