]> granicus.if.org Git - llvm/commit
[AMDGPU] Save some work when an atomic op has no uses
authorJay Foad <jay.foad@gmail.com>
Mon, 22 Jul 2019 07:19:44 +0000 (07:19 +0000)
committerJay Foad <jay.foad@gmail.com>
Mon, 22 Jul 2019 07:19:44 +0000 (07:19 +0000)
commite860308011e813da0e3850089a268df43ab2e396
treed86171106eb24d77be57631cbb86d9064ffce0ed
parent9eb46b73fcbbea3df602f34f11d31ca4ec8c24cf
[AMDGPU] Save some work when an atomic op has no uses

Summary:
In the atomic optimizer, save doing a bunch of work and generating a
bunch of dead IR in the fairly common case where the result of an
atomic op (i.e. the value that was in memory before the atomic op was
performed) is not used. NFC.

Reviewers: arsenm, dstuttard, tpr

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

Tags: #llvm

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

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