[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)
commit860adef9e6e41d6a7669b89a8b7068c0b85357c2
treec522c3e3b501b31c5119eeabf6f91b476d27fd1b
parent94fafdfdedcf9230331a0c4ba9629888657e187d
[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

llvm-svn: 328429
llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp