OSDN Git Service

[LTO] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:12:20 +0000 (19:12 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:12:20 +0000 (19:12 +0000)
commitbfe1c281d2c6b69262e33598296b8ff9fb382756
tree55e304b25a7fa899c59f2737034713c9e18eb15d
parent069de1ba37757720e8e10e42f1e9151fca6adb61
[LTO] 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 D44363 for a list of all the required patches.

Reviewers: pcc, mehdi_amini, ruiu

Reviewed By: ruiu

Subscribers: ruiu, inglorion, eraman, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330053 91177308-0d34-0410-b5e6-96231b3b80d8
lib/LTO/ThinLTOCodeGenerator.cpp