projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reverting r215966, r215965, r215964, r215963, r215960, r215959, r215958, and r215957...
[oota-llvm.git]
/
lib
/
Analysis
/
BlockFrequencyInfoImpl.cpp
diff --git
a/lib/Analysis/BlockFrequencyInfoImpl.cpp
b/lib/Analysis/BlockFrequencyInfoImpl.cpp
index 39d7f520b4e422b4d5386c531a08c6b65f372f2c..3203c371648d79822a56e192cc3572f85ef8469d 100644
(file)
--- a/
lib/Analysis/BlockFrequencyInfoImpl.cpp
+++ b/
lib/Analysis/BlockFrequencyInfoImpl.cpp
@@
-21,11
+21,6
@@
using namespace llvm::bfi_detail;
#define DEBUG_TYPE "block-freq"
#define DEBUG_TYPE "block-freq"
-//===----------------------------------------------------------------------===//
-//
-// BlockMass implementation.
-//
-//===----------------------------------------------------------------------===//
ScaledNumber<uint64_t> BlockMass::toScaled() const {
if (isFull())
return ScaledNumber<uint64_t>(1, 0);
ScaledNumber<uint64_t> BlockMass::toScaled() const {
if (isFull())
return ScaledNumber<uint64_t>(1, 0);
@@
-46,11
+41,6
@@
raw_ostream &BlockMass::print(raw_ostream &OS) const {
return OS;
}
return OS;
}
-//===----------------------------------------------------------------------===//
-//
-// BlockFrequencyInfoImpl implementation.
-//
-//===----------------------------------------------------------------------===//
namespace {
typedef BlockFrequencyInfoImplBase::BlockNode BlockNode;
namespace {
typedef BlockFrequencyInfoImplBase::BlockNode BlockNode;
@@
-122,11
+112,7
@@
void Distribution::add(const BlockNode &Node, uint64_t Amount,
Total = NewTotal;
// Save the weight.
Total = NewTotal;
// Save the weight.
- Weight W;
- W.TargetNode = Node;
- W.Amount = Amount;
- W.Type = Type;
- Weights.push_back(W);
+ Weights.push_back(Weight(Type, Node, Amount));
}
static void combineWeight(Weight &W, const Weight &OtherW) {
}
static void combineWeight(Weight &W, const Weight &OtherW) {