[all-commits] [llvm/llvm-project] f34a19: [AMDGPU] Fix AddedComplexity for s_buffer_load pat...

Jay Foad via All-commits all-commits at lists.llvm.org
Mon Apr 10 09:36:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f34a1953ce334b87cfe25cdf72677d31ebe1d50b
      https://github.com/llvm/llvm-project/commit/f34a1953ce334b87cfe25cdf72677d31ebe1d50b
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2023-04-10 (Mon, 10 Apr 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SMInstructions.td

  Log Message:
  -----------
  [AMDGPU] Fix AddedComplexity for s_buffer_load patterns. NFCI.

We set AddedComplexity = 100 for s_load patterns to prefer them over
global loads, but for s_buffer_load patterns there is no need to do
this and it was quietly overriding the AddedComplexity of each
individual GCNPat that is defined inside SMLoad_Pattern (but in practice
that did not appear to make any difference).

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




More information about the All-commits mailing list