[polly] 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: grosser, efriedma, jdoerfert, bollu, sebpop

Reviewed By: sebpop

Subscribers: sebpop, mehdi_amini, llvm-commits, pollydev

Tags: #polly

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

llvm-svn: 327361
This commit is contained in:
Mandeep Singh Grang 2018-03-13 05:25:23 +00:00
parent aab6000684
commit daec0aa71f
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ static void printSortedPolyhedra(isl::union_set USet, llvm::raw_ostream &OS,
}
// Sort the polyhedra.
std::sort(BSets.begin(), BSets.end(), orderComparer);
llvm::sort(BSets.begin(), BSets.end(), orderComparer);
// Print the polyhedra.
bool First = true;