[all-commits] [llvm/llvm-project] 227938: [Inliner] Don't skip inlining alwaysinline in optn...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Jul 7 13:03:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2279380eab08219911910e1ecdcef3eacb0b7f0c
      https://github.com/llvm/llvm-project/commit/2279380eab08219911910e1ecdcef3eacb0b7f0c
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2020-07-07 (Tue, 07 Jul 2020)

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

  Log Message:
  -----------
  [Inliner] Don't skip inlining alwaysinline in optnone functions

Previously the NPM inliner would skip all potential inlines in an
optnone function, but alwaysinline callees should be inlined regardless
of optnone.

Fixes inline-optnone.ll under NPM.

Reviewed By: kazu

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




More information about the All-commits mailing list