[all-commits] [llvm/llvm-project] f0e6ec: [Inliner] Respect noinline call site attribute

Dávid Bolvanský via All-commits all-commits at lists.llvm.org
Mon Feb 14 09:36:06 PST 2022


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

  Changed paths:
    M llvm/lib/Analysis/InlineCost.cpp
    A llvm/test/Transforms/Inline/call-site-attrs.ll

  Log Message:
  -----------
  [Inliner] Respect noinline call site attribute

```
always_inline foo() { }

bar () {

noinline foo();
}
```
We should prefer call site attribute over attribute on decl.

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

Reviewed By: aeubanks

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




More information about the All-commits mailing list