[all-commits] [llvm/llvm-project] 01e2b3: [Partial Inliner] Compute intrinsic cost through TTI

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Sep 16 07:17:14 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 01e2b394ee16502440dbbb5440502a1e2aaf1477
      https://github.com/llvm/llvm-project/commit/01e2b394ee16502440dbbb5440502a1e2aaf1477
  Author: Dangeti Tharun kumar <Tharunkumar.dangeti at amd.com>
  Date:   2020-09-16 (Wed, 16 Sep 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/PartialInlining.cpp
    A llvm/test/Transforms/PartialInlining/intrinsic-call-cost.ll

  Log Message:
  -----------
  [Partial Inliner] Compute intrinsic cost through TTI

https://bugs.llvm.org/show_bug.cgi?id=45932

assert(OutlinedFunctionCost >= Cloner.OutlinedRegionCost && "Outlined function cost should be no less than the outlined region") getting triggered in computeBBInlineCost.

Intrinsics like "assume" are considered regular function calls while computing costs.
This patch enables computeBBInlineCost to queries TTI for intrinsic call cost.

Reviewed By: fhahn

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




More information about the All-commits mailing list