mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[block-freq] Add a right shift to BlockFrequency that saturates at 1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197302 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -55,6 +55,9 @@ public:
|
||||
BlockFrequency &operator+=(const BlockFrequency &Freq);
|
||||
const BlockFrequency operator+(const BlockFrequency &Freq) const;
|
||||
|
||||
/// \brief Shift block frequency to the right by count digits saturating to 1.
|
||||
BlockFrequency &operator>>=(const unsigned count);
|
||||
|
||||
/// \brief Scale the given BlockFrequency by N/D. Return the remainder from
|
||||
/// the division by D. Upon overflow, the routine will saturate.
|
||||
uint32_t scale(const BranchProbability &Prob);
|
||||
|
Reference in New Issue
Block a user