[all-commits] [llvm/llvm-project] 84c668: [AlwaysInliner] Check inliner errors even without ...

Ellis Hoag via All-commits all-commits at lists.llvm.org
Thu Mar 17 10:16:37 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 84c6689b1511cc7bcad8f9f166bdc9808b8cdac8
      https://github.com/llvm/llvm-project/commit/84c6689b1511cc7bcad8f9f166bdc9808b8cdac8
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2022-03-17 (Thu, 17 Mar 2022)

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

  Log Message:
  -----------
  [AlwaysInliner] Check inliner errors even without assserts

When we build clang without asserts we should still check the result of
`InlineFunction()` to be sure there wasn't an error. Otherwise we could
incorrectly merge attributes in the next line.

This also removes a redundent call to `getCaller()`.

Reviewed By: nikic

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




More information about the All-commits mailing list