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/CodeGen/MachineBlockFrequencyInfo.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/CodeGen/MachineBlockFrequencyInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp index faf9eccda21..6c0f99fa111 100644 --- a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp +++ b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp @@ -175,12 +175,6 @@ Optional<uint64_t> MachineBlockFrequencyInfo::getBlockProfileCount( return MBFI ? MBFI->getBlockProfileCount(*F, MBB) : None; } -Optional<uint64_t> -MachineBlockFrequencyInfo::getProfileCountFromFreq(uint64_t Freq) const { - const Function *F = MBFI->getFunction()->getFunction(); - return MBFI ? MBFI->getProfileCountFromFreq(*F, Freq) : None; -} - const MachineFunction *MachineBlockFrequencyInfo::getFunction() const { return MBFI ? MBFI->getFunction() : nullptr; } |