[all-commits] [llvm/llvm-project] 5d1878: [mlir][inliner] Return early if the inliningThresh...

Fabian Tschopp via All-commits all-commits at lists.llvm.org
Fri Mar 22 16:09:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d187898f625cc54310f51b278b36ad6a97104ee
      https://github.com/llvm/llvm-project/commit/5d187898f625cc54310f51b278b36ad6a97104ee
  Author: Fabian Tschopp <fabian.tschopp at modular.com>
  Date:   2024-03-23 (Sat, 23 Mar 2024)

  Changed paths:
    M mlir/lib/Transforms/InlinerPass.cpp

  Log Message:
  -----------
  [mlir][inliner] Return early if the inliningThreshold is 0U or -1U. (#86287)

Computing the inlinling profitability can be costly due to walking the
graph when counting the number of operations.

This PR addresses that by returning early if the threshold is set to
never or always inline.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list