diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-12-14 00:57:18 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-12-14 00:57:18 +0000 |
commit | 7cc5f793bc858e4be4fbf532942d14013f123e55 (patch) | |
tree | b04917d5cdb3314dbbcc5279ec753415e65defe3 /lib/Support/BlockFrequency.cpp | |
parent | f392e88e18c54ab6aa086926e68c417741697311 (diff) | |
download | llvm-7cc5f793bc858e4be4fbf532942d14013f123e55.tar.gz llvm-7cc5f793bc858e4be4fbf532942d14013f123e55.tar.bz2 llvm-7cc5f793bc858e4be4fbf532942d14013f123e55.tar.xz |
[block-freq] Remove old BlockFrequency entry frequency and printing code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197297 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/BlockFrequency.cpp')
-rw-r--r-- | lib/Support/BlockFrequency.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/Support/BlockFrequency.cpp b/lib/Support/BlockFrequency.cpp index 00efe90a26..d1f8408dfc 100644 --- a/lib/Support/BlockFrequency.cpp +++ b/lib/Support/BlockFrequency.cpp @@ -149,24 +149,3 @@ uint32_t BlockFrequency::scale(const BranchProbability &Prob) { return scale(Prob.getNumerator(), Prob.getDenominator()); } -void BlockFrequency::print(raw_ostream &OS) const { - // Convert fixed-point number to decimal. - OS << Frequency / getEntryFrequency() << "."; - uint64_t Rem = Frequency % getEntryFrequency(); - uint64_t Eps = 1; - do { - Rem *= 10; - Eps *= 10; - OS << Rem / getEntryFrequency(); - Rem = Rem % getEntryFrequency(); - } while (Rem >= Eps/2); -} - -namespace llvm { - -raw_ostream &operator<<(raw_ostream &OS, const BlockFrequency &Freq) { - Freq.print(OS); - return OS; -} - -} |