[PATCH] D88315: [AMDGPU] Do not generate mul with 1 in AMDGPU Atomic Optimizer

Mirko Brkusanin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 09:10:47 PDT 2020


mbrkusanin created this revision.
mbrkusanin added reviewers: foad, arsenm.
mbrkusanin added a project: LLVM.
Herald added subscribers: kerbowa, jfb, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
mbrkusanin requested review of this revision.
Herald added a subscriber: wdng.

Check if operand of mul is constant value of one for certain atomic 
instructions in order to avoid making unnecessary instructions when
-amdgpu-atomic-optimizer is present.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88315

Files:
  llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  llvm/test/CodeGen/AMDGPU/atomic_optimizations_mul_one.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88315.294336.patch
Type: text/x-patch
Size: 4579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200925/1f6cbb02/attachment.bin>


More information about the llvm-commits mailing list