[all-commits] [llvm/llvm-project] 0249df: [AMDGPU] Do not generate mul with 1 in AMDGPU Atom...

Mirko BrkuĊĦanin via All-commits all-commits at lists.llvm.org
Wed Sep 30 02:16:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0249df33fec16b728e2d33cae02f5da4c9f74e38
      https://github.com/llvm/llvm-project/commit/0249df33fec16b728e2d33cae02f5da4c9f74e38
  Author: Mirko Brkusanin <Mirko.Brkusanin at amd.com>
  Date:   2020-09-30 (Wed, 30 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
    A llvm/test/CodeGen/AMDGPU/GlobalISel/atomic_optimizations_mul_one.ll

  Log Message:
  -----------
  [AMDGPU] Do not generate mul with 1 in AMDGPU Atomic Optimizer

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.

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




More information about the All-commits mailing list