diff options
author | Andrew Trick <atrick@apple.com> | 2011-06-04 01:16:30 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2011-06-04 01:16:30 +0000 |
commit | 9e76422b963a65f243fdbee0abed61068b82dd98 (patch) | |
tree | 3523e779d5f1822d95cadc48768982873855c67a /lib/Analysis/Analysis.cpp | |
parent | c122c625ce018e33f25ba35150bed10183ae2b40 (diff) |
New BranchProbabilityInfo analysis. Patch by Jakub Staszak!
BranchProbabilityInfo provides an interface for IR passes to query the
likelihood that control follows a CFG edge. This patch provides an
initial implementation of static branch predication that will populate
BranchProbabilityInfo for branches with no external profile
information using very simple heuristics. It currently isn't hooked up
to any external profile data, so static prediction does all the work.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Analysis.cpp')
-rw-r--r-- | lib/Analysis/Analysis.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/Analysis.cpp b/lib/Analysis/Analysis.cpp index 6ebe100b13..e57ba78332 100644 --- a/lib/Analysis/Analysis.cpp +++ b/lib/Analysis/Analysis.cpp @@ -23,6 +23,7 @@ void llvm::initializeAnalysis(PassRegistry &Registry) { initializeAliasSetPrinterPass(Registry); initializeNoAAPass(Registry); initializeBasicAliasAnalysisPass(Registry); + initializeBranchProbabilityInfoPass(Registry); initializeCFGViewerPass(Registry); initializeCFGPrinterPass(Registry); initializeCFGOnlyViewerPass(Registry); |