projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4e316a
)
InstrProf: Don't call std::unique twice here
author
Justin Bogner
<mail@justinbogner.com>
Wed, 30 Sep 2015 02:02:08 +0000
(
02:02
+0000)
committer
Justin Bogner
<mail@justinbogner.com>
Wed, 30 Sep 2015 02:02:08 +0000
(
02:02
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248872
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ProfileData/InstrProfReader.cpp
patch
|
blob
|
history
diff --git
a/lib/ProfileData/InstrProfReader.cpp
b/lib/ProfileData/InstrProfReader.cpp
index 062c337d4ee7821ff89f310150a13572b0df74ee..ff93c4d4e7bc2f7f514047e1a2f2e127477e399c 100644
(file)
--- a/
lib/ProfileData/InstrProfReader.cpp
+++ b/
lib/ProfileData/InstrProfReader.cpp
@@
-452,7
+452,6
@@
std::error_code IndexedInstrProfReader::readHeader() {
HashKeys.push_back(std::make_pair(ComputeHash(HashType, Key), KeyTableRef));
}
std::sort(HashKeys.begin(), HashKeys.end(), less_first());
- std::unique(HashKeys.begin(), HashKeys.end(), less_first());
HashKeys.erase(std::unique(HashKeys.begin(), HashKeys.end()), HashKeys.end());
// Set the hash key map for the InstrLookupTrait
Index->getInfoObj().setHashKeys(std::move(HashKeys));