]> granicus.if.org Git - clang/commit
Provide reason messages for unviable inlining
authorYevgeny Rouban <yevgeny.rouban@azul.com>
Fri, 1 Feb 2019 10:44:43 +0000 (10:44 +0000)
committerYevgeny Rouban <yevgeny.rouban@azul.com>
Fri, 1 Feb 2019 10:44:43 +0000 (10:44 +0000)
commit07d269d2686e28ea49aaa43338db962b084adce3
treebf403f244706a711a74b8ce7b105b3d0dbd057a1
parent4cdc67abb319f76cf430e303e58d05a53f5d5eac
Provide reason messages for unviable inlining

InlineCost's isInlineViable() is changed to return InlineResult
instead of bool. This provides messages for failure reasons and
allows to get more specific messages for cases where callsites
are not viable for inlining.

Reviewed By: xbolva00, anemet

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352849 91177308-0d34-0410-b5e6-96231b3b80d8
test/Frontend/optimization-remark-with-hotness.c