[all-commits] [llvm/llvm-project] 185cb8: [AMDGPU] SILoadStoreOptimizer: Allow merging acros...

Jay Foad via All-commits all-commits at lists.llvm.org
Thu Jan 27 06:44:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 185cb8e82c98096fdd73beb646017d86ca8692b3
      https://github.com/llvm/llvm-project/commit/185cb8e82c98096fdd73beb646017d86ca8692b3
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-01-27 (Thu, 27 Jan 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
    M llvm/test/CodeGen/AMDGPU/merge-tbuffer.mir

  Log Message:
  -----------
  [AMDGPU] SILoadStoreOptimizer: Allow merging across a swizzled access

Swizzled accesses are not merged, but there is no particular reason not
to merge two instructions if any of the intervening instructions happens
to be a swizzled access.

This moves the check for swizzled accesses out of checkAndPrepareMerge
into collectMergeableInsts where I think it makes more sense.

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




More information about the All-commits mailing list