summaryrefslogtreecommitdiff
path: root/lib/Support/BlockFrequency.cpp
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-12-14 00:57:18 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-12-14 00:57:18 +0000
commit7cc5f793bc858e4be4fbf532942d14013f123e55 (patch)
treeb04917d5cdb3314dbbcc5279ec753415e65defe3 /lib/Support/BlockFrequency.cpp
parentf392e88e18c54ab6aa086926e68c417741697311 (diff)
downloadllvm-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.cpp21
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;
-}
-
-}