[all-commits] [llvm/llvm-project] 040c50: [AMDGPU] Fix ds_read2/write2 with unaligned offsets

Jay Foad via All-commits all-commits at lists.llvm.org
Tue Nov 3 07:16:44 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 040c50278c8dc317c15639b5ea65dd2a32a5bcd0
      https://github.com/llvm/llvm-project/commit/040c50278c8dc317c15639b5ea65dd2a32a5bcd0
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-11-03 (Tue, 03 Nov 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
    M llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-load-local-128.mir
    M llvm/test/CodeGen/AMDGPU/ds-sub-offset.ll
    M llvm/test/CodeGen/AMDGPU/ds_read2.ll
    M llvm/test/CodeGen/AMDGPU/ds_write2.ll

  Log Message:
  -----------
  [AMDGPU] Fix ds_read2/write2 with unaligned offsets

These instructions use a scaled offset. We were wrongly selecting them
even when the required offset was not a multiple of the scale factor.

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




More information about the All-commits mailing list