]> granicus.if.org Git - llvm/commit
[AMDGPU] Optimize atomic max/min
authorJay Foad <jay.foad@gmail.com>
Tue, 16 Jul 2019 17:44:54 +0000 (17:44 +0000)
committerJay Foad <jay.foad@gmail.com>
Tue, 16 Jul 2019 17:44:54 +0000 (17:44 +0000)
commit7935774fce6df0588fdfde83e7c8991c753e545b
treefd36dd93b670f7d44d6f7733509ec26b872facd1
parent81c5f01f3a763ef796e663184340cd614ad7e6ec
[AMDGPU] Optimize atomic max/min

Summary:
Extend the atomic optimizer to handle signed and unsigned max and min
operations, as well as add and subtract.

Reviewers: arsenm, sheredom, critson, rampitec

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, jfb, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366235 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
test/CodeGen/AMDGPU/atomic_optimizations_local_pointer.ll