OSDN Git Service

CodeExtractor : Add ability to preserve profile data.
authorSean Silva <chisophugis@gmail.com>
Tue, 2 Aug 2016 02:15:45 +0000 (02:15 +0000)
committerSean Silva <chisophugis@gmail.com>
Tue, 2 Aug 2016 02:15:45 +0000 (02:15 +0000)
commite9e07465eff9ac1d5403f413f6573b971d4a1a3d
tree1db1cc5c3dc08d9320febc156fd26aaf2e5d8698
parent81274146abbcf34eb88d8850d8e93ba3e42aedbf
CodeExtractor : Add ability to preserve profile data.

Added ability to estimate the entry count of the extracted function and
the branch probabilities of the exit branches.

Patch by River Riddle!

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@277411 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyInfo.h
include/llvm/Analysis/BlockFrequencyInfoImpl.h
include/llvm/CodeGen/MachineBlockFrequencyInfo.h
include/llvm/Transforms/Utils/CodeExtractor.h
lib/Analysis/BlockFrequencyInfo.cpp
lib/Analysis/BlockFrequencyInfoImpl.cpp
lib/CodeGen/MachineBlockFrequencyInfo.cpp
lib/Transforms/IPO/PartialInlining.cpp
lib/Transforms/Utils/CodeExtractor.cpp
test/Transforms/CodeExtractor/ExtractedFnEntryCount.ll [new file with mode: 0644]
test/Transforms/CodeExtractor/MultipleExitBranchProb.ll [new file with mode: 0644]