diff options
Diffstat (limited to 'llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp')
-rw-r--r-- | llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp index 15503c5..037f009 100644 --- a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp +++ b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp @@ -46,6 +46,20 @@ cl::opt<bool> CheckBFIUnknownBlockQueries( cl::init(false), cl::Hidden, cl::desc("Check if block frequency is queried for an unknown block " "for debugging missed BFI updates")); + +cl::opt<bool> UseIterativeBFIInference( + "use-iterative-bfi-inference", cl::init(false), cl::Hidden, + cl::desc("Apply an iterative post-processing to infer correct BFI counts")); + +cl::opt<unsigned> IterativeBFIMaxIterationsPerBlock( + "iterative-bfi-max-iterations-per-block", cl::init(1000), cl::Hidden, + cl::desc("Iterative inference: maximum number of update iterations " + "per block")); + +cl::opt<double> IterativeBFIPrecision( + "iterative-bfi-precision", cl::init(1e-12), cl::Hidden, + cl::desc("Iterative inference: delta convergence precision; smaller values " + "typically lead to better results at the cost of worsen runtime")); } ScaledNumber<uint64_t> BlockMass::toScaled() const { |