OSDN Git Service

[AMDGPU] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Sat, 24 Mar 2018 17:15:04 +0000 (17:15 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Sat, 24 Mar 2018 17:15:04 +0000 (17:15 +0000)
commita71df880dd054405e48f387632f7a99b75b419ed
tree3380dfb3aee121a834626a4d84254c8240246767
parentadd7b3e24ef147a8aa34d62545cdb911210ed012
[AMDGPU] 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.

Reviewers: tstellar, RKSimon, arsenm

Reviewed By: arsenm

Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, tpr, llvm-commits, t-tye

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328429 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/GCNIterativeScheduler.cpp