diff options
author | Justin Bogner <mail@justinbogner.com> | 2015-09-30 02:02:08 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2015-09-30 02:02:08 +0000 |
commit | 75df7187f33fce19265aff97c000023f8f5b8504 (patch) | |
tree | 961117bb6127f2a46c6f292c637aa896553f41cc /llvm/lib/ProfileData/InstrProfReader.cpp | |
parent | 5ba3ac4f1085b5ac21f9adb27f9d10d4dd317db0 (diff) | |
download | llvm-75df7187f33fce19265aff97c000023f8f5b8504.zip llvm-75df7187f33fce19265aff97c000023f8f5b8504.tar.gz llvm-75df7187f33fce19265aff97c000023f8f5b8504.tar.bz2 |
InstrProf: Don't call std::unique twice here
llvm-svn: 248872
Diffstat (limited to 'llvm/lib/ProfileData/InstrProfReader.cpp')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index 062c337..ff93c4d 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/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)); |