[all-commits] [llvm/llvm-project] 7c724a: [AMDGPU] Do not check max-bb for a single block ca...

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Mon Mar 1 20:11:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c724a896f93c97fe75db6f37b0995c9b35e0b82
      https://github.com/llvm/llvm-project/commit/7c724a896f93c97fe75db6f37b0995c9b35e0b82
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
    M llvm/test/CodeGen/AMDGPU/amdgpu-inline.ll

  Log Message:
  -----------
  [AMDGPU] Do not check max-bb for a single block callee

-amdgpu-inline-max-bb option could lead to a suboptimal
codegen preventing inlining of really simple functions
including pure wrapper calls. Relax the cutoff by allowing
to call a function with a single block on the grounds
that it will not increase total number of blocks after
inlining.

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




More information about the All-commits mailing list