[XCore] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Mon, 26 Mar 2018 18:08:26 +0000 (18:08 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Mon, 26 Mar 2018 18:08:26 +0000 (18:08 +0000)
commit1b9ff45157193d544d91c680701c9c3f00d786e5
treec9916451cd0eb5de3ac2fd8b92ae43a08da84be2
parent8252892951123b0c54ce2aa71b3a6fd48bf2cfb1
[XCore] 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: dblaikie, RKSimon, robertlytton

Reviewed By: robertlytton

Subscribers: llvm-commits

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

llvm-svn: 328564
llvm/lib/Target/XCore/XCoreFrameLowering.cpp
llvm/lib/Target/XCore/XCoreLowerThreadLocal.cpp