diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-21 20:20:27 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-21 20:20:27 +0000 |
commit | b47aceaf068352eebf4da87a647363b2317f0f22 (patch) | |
tree | 6cc2aa330ff430513341f69bbd2841f935c4c4fa /include | |
parent | 5a18572320542a66778f20fb624310fe7662cc85 (diff) | |
download | llvm-b47aceaf068352eebf4da87a647363b2317f0f22.tar.gz llvm-b47aceaf068352eebf4da87a647363b2317f0f22.tar.bz2 llvm-b47aceaf068352eebf4da87a647363b2317f0f22.tar.xz |
Revert "BlockFrequency: Saturate at 1 instead of 0 when multiplying a frequency with a branch probability."
This reverts commit r184584. Breaks PPC selfhost.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/BlockFrequency.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/llvm/Support/BlockFrequency.h b/include/llvm/Support/BlockFrequency.h index 257888f8d0..839cf93712 100644 --- a/include/llvm/Support/BlockFrequency.h +++ b/include/llvm/Support/BlockFrequency.h @@ -30,20 +30,12 @@ class BlockFrequency { public: BlockFrequency(uint64_t Freq = 0) : Frequency(Freq) { } - /// \brief Returns the frequency of the entry block of the function. static uint64_t getEntryFrequency() { return ENTRY_FREQ; } - - /// \brief Returns the frequency as a fixpoint number scaled by the entry - /// frequency. uint64_t getFrequency() const { return Frequency; } - /// \brief Multiplies with a branch probability. The computation will never - /// overflow. If the result is equal to zero but the input wasn't this method - /// will return a frequency of one. BlockFrequency &operator*=(const BranchProbability &Prob); const BlockFrequency operator*(const BranchProbability &Prob) const; - /// \brief Adds another block frequency using saturating arithmetic. BlockFrequency &operator+=(const BlockFrequency &Freq); const BlockFrequency operator+(const BlockFrequency &Freq) const; |