OSDN Git Service

[ProfileData] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:46:36 +0000 (19:46 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:46:36 +0000 (19:46 +0000)
commit74fc0f2259d005de07486006fca503f22f4215a0
tree5df606421adcb556708519a3e06138158914a9f8
parent58f4dfd1782059f03ab2ea6e9d10ba5818dbb994
[ProfileData] Change std::sort to llvm::sort in response to r327219

Summary:
r327219 added wrappers to std::sort which randomly shuffle the container before sorting.
This will help in uncovering non-determinism caused due to undefined sorting
order of objects having the same key.

To make use of that infrastructure we need to invoke llvm::sort instead of std::sort.

Note: This patch is one of a series of patches to replace *all* std::sort to llvm::sort.
Refer the comments section in D44363 for a list of all the required patches.

Reviewers: bogner, vsk, eraman, ruiu

Reviewed By: ruiu

Subscribers: ruiu, llvm-commits

Differential Revision: https://reviews.llvm.org/D45139

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330057 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/Coverage/CoverageMapping.cpp
lib/ProfileData/GCOV.cpp
lib/ProfileData/ProfileSummaryBuilder.cpp