[PATCH] D44361: [polly] Change std::sort to llvm::sort in response to r327219

Mandeep Singh Grang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 10 19:44:31 PST 2018


mgrang created this revision.
mgrang added reviewers: grosser, efriedma, jdoerfert.
mgrang added a project: Polly.
Herald added subscribers: llvm-commits, mehdi_amini.
Herald added a reviewer: bollu.

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.


Repository:
  rPLO Polly

https://reviews.llvm.org/D44361

Files:
  lib/Support/ISLTools.cpp


Index: lib/Support/ISLTools.cpp
===================================================================
--- lib/Support/ISLTools.cpp
+++ lib/Support/ISLTools.cpp
@@ -744,7 +744,7 @@
   }
 
   // Sort the polyhedra.
-  std::sort(BSets.begin(), BSets.end(), orderComparer);
+  llvm::sort(BSets.begin(), BSets.end(), orderComparer);
 
   // Print the polyhedra.
   bool First = true;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44361.137937.patch
Type: text/x-patch
Size: 377 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180311/fe955644/attachment.bin>


More information about the llvm-commits mailing list