diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-08-01 04:16:09 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-08-01 04:16:09 +0000 |
commit | 423c7149dccf4be10aca069616c07527e7d77fa9 (patch) | |
tree | c27ad037c5ed7d043311b2cdfc8810e014ba4ced /llvm/lib/Analysis/BlockFrequencyInfo.cpp | |
parent | e5a5c966cd773c41f0b36ff6d4aa5e972f273ac5 (diff) | |
download | bcm5719-llvm-423c7149dccf4be10aca069616c07527e7d77fa9.tar.gz bcm5719-llvm-423c7149dccf4be10aca069616c07527e7d77fa9.zip |
Revert r277313 and r277314.
They seem to trigger an LSan failure:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/15140/steps/check-llvm%20asan/logs/stdio
Revert "Add the tests for r277313"
This reverts commit r277314.
Revert "CodeExtractor : Add ability to preserve profile data."
This reverts commit r277313.
llvm-svn: 277317
Diffstat (limited to 'llvm/lib/Analysis/BlockFrequencyInfo.cpp')
-rw-r--r-- | llvm/lib/Analysis/BlockFrequencyInfo.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/BlockFrequencyInfo.cpp b/llvm/lib/Analysis/BlockFrequencyInfo.cpp index 5f7060aaa61..1dd8f4fdfcf 100644 --- a/llvm/lib/Analysis/BlockFrequencyInfo.cpp +++ b/llvm/lib/Analysis/BlockFrequencyInfo.cpp @@ -162,13 +162,6 @@ BlockFrequencyInfo::getBlockProfileCount(const BasicBlock *BB) const { return BFI->getBlockProfileCount(*getFunction(), BB); } -Optional<uint64_t> -BlockFrequencyInfo::getProfileCountFromFreq(uint64_t Freq) const { - if (!BFI) - return None; - return BFI->getProfileCountFromFreq(*getFunction(), Freq); -} - void BlockFrequencyInfo::setBlockFreq(const BasicBlock *BB, uint64_t Freq) { assert(BFI && "Expected analysis to be available"); BFI->setBlockFreq(BB, Freq); |