BFI: Clean up BlockMass
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 12 Jul 2014 00:21:30 +0000 (00:21 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 12 Jul 2014 00:21:30 +0000 (00:21 +0000)
commitd164a164ecff5abeb685dd88aa2ef48ea238719b
tree484d8ba3f5ed12a2edae08ebb09fc99ebeb9de7c
parente2729b9a98306d6fc97ae0f9832a0a850d8f653a
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212866 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyInfoImpl.h
lib/Analysis/BlockFrequencyInfoImpl.cpp