[all-commits] [llvm/llvm-project] a4aa97: [InlineCost] Add cl::opt for target attributes com...

annamthomas via All-commits all-commits at lists.llvm.org
Fri Mar 11 15:05:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4aa97d57849113a7ccf60a156ee24b5da88e5d5
      https://github.com/llvm/llvm-project/commit/a4aa97d57849113a7ccf60a156ee24b5da88e5d5
  Author: Anna Thomas <anna at azul.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M llvm/lib/Analysis/InlineCost.cpp

  Log Message:
  -----------
  [InlineCost] Add cl::opt for target attributes compatibility check. NFC

This patch adds a CL option for avoiding the attribute compatibility
check between caller and callee in TTI. TTI attribute compatibility
checks for target CPU and target features.
In our downstream compiler, this attribute always remains the same
between callee and caller. By avoiding the addition of this attribute to
each of our inline candidate (and then checking them here during inline
cost), we save some compile time.

The option is kept false, so this change is an NFC upstream.




More information about the All-commits mailing list