summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-12 00:21:30 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-07-12 00:21:30 +0000
commit345c287da9bc502d7be580686c6273a16afcdfe7 (patch)
treed152cf8ed28211b3b3fc3517f2f57b82c5b967bb /llvm/lib
parent9ef63b2836b0d0a0eda456f9d7cba35d731491f9 (diff)
downloadbcm5719-llvm-345c287da9bc502d7be580686c6273a16afcdfe7.tar.gz
bcm5719-llvm-345c287da9bc502d7be580686c6273a16afcdfe7.zip
BFI: Clean up BlockMass
Implementation is small now -- the interesting logic was moved to `BranchProbability` a while ago. Move it into `bfi_detail` and get rid of the related TODOs. I was originally planning to define it within `BlockFrequencyInfoImpl` (or `BFIIBase`), but it seems cleaner in a namespace. Besides, `isPodLike` needs to be specialized before `BlockMass` can be used in some of the other data structures, and there isn't a clear way to do that. llvm-svn: 212866
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
index 39d7f520b4e..44b4192353a 100644
--- a/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
+++ b/llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
@@ -21,11 +21,6 @@ using namespace llvm::bfi_detail;
#define DEBUG_TYPE "block-freq"
-//===----------------------------------------------------------------------===//
-//
-// BlockMass implementation.
-//
-//===----------------------------------------------------------------------===//
ScaledNumber<uint64_t> BlockMass::toScaled() const {
if (isFull())
return ScaledNumber<uint64_t>(1, 0);
@@ -46,11 +41,6 @@ raw_ostream &BlockMass::print(raw_ostream &OS) const {
return OS;
}
-//===----------------------------------------------------------------------===//
-//
-// BlockFrequencyInfoImpl implementation.
-//
-//===----------------------------------------------------------------------===//
namespace {
typedef BlockFrequencyInfoImplBase::BlockNode BlockNode;
OpenPOWER on IntegriCloud