diff options
author | Nathan Slingerland <slingn@gmail.com> | 2015-12-04 02:13:58 +0000 |
---|---|---|
committer | Nathan Slingerland <slingn@gmail.com> | 2015-12-04 02:13:58 +0000 |
commit | cb921a1d88065fc43d2121834a3c59c20d970b5b (patch) | |
tree | 51ddca63d7fbf5faf027c93d84bc9953d28156b4 /llvm/lib/ProfileData | |
parent | 7cc13f2e5857e95da828733421bf5c49179c5fe1 (diff) | |
download | bcm5719-llvm-cb921a1d88065fc43d2121834a3c59c20d970b5b.tar.gz bcm5719-llvm-cb921a1d88065fc43d2121834a3c59c20d970b5b.zip |
Revert "[llvm-profdata] Add support for weighted merge of profile data"
This reverts commit b7250858d96b8ce567681214273ac0e62713c661.
Reverting in order to investigate Windows test failure.
llvm-svn: 254687
Diffstat (limited to 'llvm/lib/ProfileData')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfWriter.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/llvm/lib/ProfileData/InstrProfWriter.cpp b/llvm/lib/ProfileData/InstrProfWriter.cpp index 2261c92f03a..78bec012eeb 100644 --- a/llvm/lib/ProfileData/InstrProfWriter.cpp +++ b/llvm/lib/ProfileData/InstrProfWriter.cpp @@ -98,8 +98,7 @@ void InstrProfWriter::updateStringTableReferences(InstrProfRecord &I) { I.updateStrings(&StringTable); } -std::error_code InstrProfWriter::addRecord(InstrProfRecord &&I, - uint64_t Weight) { +std::error_code InstrProfWriter::addRecord(InstrProfRecord &&I) { updateStringTableReferences(I); auto &ProfileDataMap = FunctionData[I.Name]; @@ -114,18 +113,9 @@ std::error_code InstrProfWriter::addRecord(InstrProfRecord &&I, // We've never seen a function with this name and hash, add it. Dest = std::move(I); Result = instrprof_error::success; - if (Weight > 1) { - for (auto &Count : Dest.Counts) { - bool Overflowed; - Count = SaturatingMultiply(Count, Weight, Overflowed); - if (Overflowed && Result == instrprof_error::success) { - Result = instrprof_error::counter_overflow; - } - } - } } else { // We're updating a function we've seen before. - Result = Dest.merge(I, Weight); + Result = Dest.merge(I); } // We keep track of the max function count as we go for simplicity. |