[llvm][NFC] Add comments and common-case API to MachineBlockFrequencyInfo
authorMircea Trofin <mtrofin@google.com>
Thu, 23 Jul 2020 15:42:34 +0000 (08:42 -0700)
committerMircea Trofin <mtrofin@google.com>
Thu, 23 Jul 2020 15:42:34 +0000 (08:42 -0700)
commit302e91baf4fa041d2187e153e59bbe8c7ff5b673
treebeb8791809d18e8aee52bf64634153f17a3b6873
parente3650dc97927d39a489d5a5618929dcaac7c149d
[llvm][NFC] Add comments and common-case API to MachineBlockFrequencyInfo

Clarify the relation between a block's BlockFrequency and the
getEntryFreq() API, and added an API for the relatively common case of
finding a block's frequency relative to the entrypoint.

Added / moved some comments to header.

Differential Revision: https://reviews.llvm.org/D84357
llvm/include/llvm/CodeGen/MachineBlockFrequencyInfo.h
llvm/lib/CodeGen/LiveIntervals.cpp
llvm/lib/CodeGen/RegAllocPBQP.cpp