[all-commits] [llvm/llvm-project] d82828: [AlwaysInliner] Respect noinline call site attribute

Dávid Bolvanský via All-commits all-commits at lists.llvm.org
Fri Feb 11 10:23:26 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d828281e7860b5e812474212bfc49cc57d52dae0
  Author: Dávid Bolvanský <david.bolvansky at gmail.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/AlwaysInliner.cpp
    M llvm/test/Transforms/Inline/always-inline.ll

  Log Message:
  [AlwaysInliner] Respect noinline call site attribute

always_inline foo() { }

bar () {

noinline foo();

We should prefer call site attribute over attribute on decl. This is fix for AlwaysInliner, similar fix is needed for normal Inliner (follow up).

Related to https://reviews.llvm.org/D119061

Reviewed By: aeubanks

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

More information about the All-commits mailing list