[PATCH] D44944: [Analysis] Change std::sort to llvm::sort in response to r327219

Mandeep Singh Grang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 10:00:26 PDT 2018


mgrang created this revision.
mgrang added reviewers: sanjoy, dexonsmith, hfinkel, RKSimon.
Herald added a subscriber: david2050.

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.

Note: This patch is one of a series of patches to replace *all* std::sort to llvm::sort.
Refer https://reviews.llvm.org/D44363 for a list of all the required patches.


Repository:
  rL LLVM

https://reviews.llvm.org/D44944

Files:
  lib/Analysis/BlockFrequencyInfoImpl.cpp
  lib/Analysis/CFLAndersAliasAnalysis.cpp
  lib/Analysis/CallGraph.cpp
  lib/Analysis/MemoryDependenceAnalysis.cpp
  lib/Analysis/MemorySSA.cpp
  lib/Analysis/ScalarEvolution.cpp
  lib/Analysis/ScalarEvolutionExpander.cpp
  lib/Analysis/TargetLibraryInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44944.139947.patch
Type: text/x-patch
Size: 6411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180327/767ffeb5/attachment.bin>


More information about the llvm-commits mailing list