OSDN Git Service

[PartialInlining] Profile based cost analysis
authorXinliang David Li <davidxl@google.com>
Fri, 12 May 2017 23:41:43 +0000 (23:41 +0000)
committerXinliang David Li <davidxl@google.com>
Fri, 12 May 2017 23:41:43 +0000 (23:41 +0000)
commit650f9d4bf533e21d61a5490360b4f5be687e3f97
treec3f543d0625daabcfc3bfa3f2c2b086c1ab49ba3
parentf171aff2b8c9159c9d6768d7a2577be5d275cbc3
[PartialInlining] Profile based cost analysis

Implemented frequency based cost/saving analysis
and related options.

The pass is now in a state ready to be turne on
in the pipeline (in follow up).

Differential Revision: http://reviews.llvm.org/D32783

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302967 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/PartialInlining.cpp
test/Transforms/CodeExtractor/ExtractedFnEntryCount.ll
test/Transforms/CodeExtractor/MultipleExitBranchProb.ll
test/Transforms/CodeExtractor/PartialInlineAnd.ll
test/Transforms/CodeExtractor/PartialInlineEntryUpdate.ll [new file with mode: 0644]
test/Transforms/CodeExtractor/PartialInlineHighCost.ll [new file with mode: 0644]
test/Transforms/CodeExtractor/PartialInlineOr.ll
test/Transforms/CodeExtractor/PartialInlineOrAnd.ll
test/Transforms/CodeExtractor/SingleCondition.ll
test/Transforms/CodeExtractor/X86/InheritTargetAttributes.ll