forked from OSchip/llvm-project
[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
This commit is contained in:
parent
94fafdfded
commit
860adef9e6
|
@ -433,7 +433,7 @@ void GCNIterativeScheduler::scheduleRegion(Region &R, Range &&Schedule,
|
|||
// Sort recorded regions by pressure - highest at the front
|
||||
void GCNIterativeScheduler::sortRegionsByPressure(unsigned TargetOcc) {
|
||||
const auto &ST = MF.getSubtarget<SISubtarget>();
|
||||
std::sort(Regions.begin(), Regions.end(),
|
||||
llvm::sort(Regions.begin(), Regions.end(),
|
||||
[&ST, TargetOcc](const Region *R1, const Region *R2) {
|
||||
return R2->MaxPressure.less(ST, R1->MaxPressure, TargetOcc);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue