[all-commits] [llvm/llvm-project] bc3d90: AMDGPU/GlobalISel: Fix not using global atomics on...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Jan 27 07:42:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bc3d900fa5fc537163b8556a6b59925231bc4d09
      https://github.com/llvm/llvm-project/commit/bc3d900fa5fc537163b8556a6b59925231bc4d09
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-01-27 (Mon, 27 Jan 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/FLATInstructions.td
    M llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-atomicrmw-add-global.mir
    M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.atomic.inc.ll

  Log Message:
  -----------
  AMDGPU/GlobalISel: Fix not using global atomics on gfx9+

For some reason the flat/global atomics end up in the generated
matcher table in a different order from SelectionDAG. Use
AddedComplexity to prefer checking for global atomics first.




More information about the All-commits mailing list