[PATCH] D22835: [BPI] Add new LazyBPI analysis
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 15:32:31 PDT 2016
anemet created this revision.
anemet added reviewers: davidxl, hfinkel.
anemet added a subscriber: llvm-commits.
The motivation is the same as in D22141: In order to add the hotness
attribute to optimization remarks we need BFI to be available in all
passes that emit optimization remarks. BFI depends on BPI so unless we
make this lazy as well we would still compute BPI unconditionally.
The solution is to use the new LazyBPI pass in LazyBFI and only compute
BPI when computation of BFI is requested by the client.
I extended the laziness test using a LoopDistribute test to also cover
BPI.
https://reviews.llvm.org/D22835
Files:
include/llvm/Analysis/LazyBlockFrequencyInfo.h
include/llvm/Analysis/LazyBranchProbabilityInfo.h
include/llvm/InitializePasses.h
lib/Analysis/Analysis.cpp
lib/Analysis/CMakeLists.txt
lib/Analysis/LazyBlockFrequencyInfo.cpp
lib/Analysis/LazyBranchProbabilityInfo.cpp
test/Analysis/BranchProbabilityInfo/basic.ll
test/Transforms/LoopDistribute/diagnostics-with-hotness-lazy-BFI.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22835.65617.patch
Type: text/x-patch
Size: 14468 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160726/81e08953/attachment.bin>
More information about the llvm-commits
mailing list