[all-commits] [llvm/llvm-project] a456ac: [AMDGPU] SILoadStoreOptimizer: rewrite checkAndPre...

Jay Foad via All-commits all-commits at lists.llvm.org
Fri Feb 4 09:19:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a456ace9c1f0ad501a681a4a6881486a3aa909ae
      https://github.com/llvm/llvm-project/commit/a456ace9c1f0ad501a681a4a6881486a3aa909ae
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

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

  Log Message:
  -----------
  [AMDGPU] SILoadStoreOptimizer: rewrite checkAndPrepareMerge. NFCI.

Separate the function clearly into:
- Checks that can be done on CI and Paired before the loop.
- The loop over all instructions between CI and Paired.
- Checks that must be done on InstsToMove after the loop.

Previously these were mostly done inside the loop in a very
confusing way.

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




More information about the All-commits mailing list