[all-commits] [llvm/llvm-project] bd3ca6: [Inlining] Delete redundant optnone/alwaysinline c...

Xun Li via All-commits all-commits at lists.llvm.org
Thu Jan 21 18:42:19 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bd3ca6666d14464b1bb7eecbd3cc227ee0614799
      https://github.com/llvm/llvm-project/commit/bd3ca6666d14464b1bb7eecbd3cc227ee0614799
  Author: Xun Li <lxfind at gmail.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/Inliner.cpp

  Log Message:
  -----------
  [Inlining] Delete redundant optnone/alwaysinline check

The same check is done in InlineCost: https://github.com/llvm/llvm-project/blob/8b0bd54d0ec968df28ccc58bbb537a7b7c074ef2/llvm/lib/Analysis/InlineCost.cpp#L2537-L2552
Also, doing a check on the callee here is confusing, because anything that deals with callee should be done in the inner loop where we proecss all calls from the same caller.

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




More information about the All-commits mailing list