OSDN Git Service

[PartialInlining] Use isInlineViable to detect constructs preventing inlining.
authorFlorian Hahn <florian.hahn@arm.com>
Sat, 10 Mar 2018 14:53:44 +0000 (14:53 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Sat, 10 Mar 2018 14:53:44 +0000 (14:53 +0000)
commit8c9cc1f5e6727c12dffe21835f1b825878deeec2
tree265162bb6e8a62cc77f722adae585f5af5afbb2b
parent7ca2a477857304ba0dde18ee6417f8851f311d13
[PartialInlining] Use isInlineViable to detect constructs preventing inlining.

Use isInlineViable to prevent inlining of functions with non-inlinable
constructs, in case cost analysis is skipped.

Reviewers: efriedma, sfertile, davide, davidxl

Reviewed By: efriedma

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327207 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PartialInlining.cpp
test/Transforms/CodeExtractor/PartialInlineNotViable.ll [new file with mode: 0644]