Create a wrapper pass for BlockFrequencyInfo.
authorWei Mi <wmi@google.com>
Tue, 14 Jul 2015 23:40:50 +0000 (23:40 +0000)
committerWei Mi <wmi@google.com>
Tue, 14 Jul 2015 23:40:50 +0000 (23:40 +0000)
commitd5892380e1799e89e8c8c3a4f4f2fab728a8a050
tree89409032466110eb78bc05f4900b118b53299994
parent37de644bfb6e119e19e68638d31c1baf0aeec89e
Create a wrapper pass for BlockFrequencyInfo.

This is useful when we want to do block frequency analysis
conditionally (e.g. only in PGO mode) but don't want to add
one more pass dependence.

Patch by congh.
Approved by dexonsmith.
Differential Revision: http://reviews.llvm.org/D11196

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242248 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyInfo.h
include/llvm/InitializePasses.h
lib/Analysis/Analysis.cpp
lib/Analysis/BlockFrequencyInfo.cpp
lib/Transforms/Vectorize/LoopVectorize.cpp