OSDN Git Service

[Transforms] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:47:57 +0000 (19:47 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:47:57 +0000 (19:47 +0000)
commit15ff8cad10e34a791ce9f99bc974df4fa999a2dc
tree78af893116ff1b2e998587e85abecc559e7c697e
parent648f7eaefcfc99c140fd56a36a188b19694bfb5d
[Transforms] 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.

Note: This patch is one of a series of patches to replace *all* std::sort to llvm::sort.
Refer the comments section in D44363 for a list of all the required patches.

Reviewers: kcc, pcc, danielcdh, jmolloy, sanjoy, dberlin, ruiu

Reviewed By: ruiu

Subscribers: ruiu, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330059 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
lib/Transforms/Coroutines/CoroFrame.cpp
lib/Transforms/IPO/LowerTypeTests.cpp
lib/Transforms/IPO/SampleProfile.cpp
lib/Transforms/Instrumentation/GCOVProfiling.cpp
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
lib/Transforms/Scalar/ConstantHoisting.cpp
lib/Transforms/Scalar/GVNHoist.cpp
lib/Transforms/Scalar/GVNSink.cpp
lib/Transforms/Scalar/GuardWidening.cpp
lib/Transforms/Scalar/LoopSink.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
lib/Transforms/Scalar/MergeICmps.cpp
lib/Transforms/Scalar/NewGVN.cpp
lib/Transforms/Scalar/PlaceSafepoints.cpp
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
lib/Transforms/Scalar/SROA.cpp
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp
lib/Transforms/Utils/LowerSwitch.cpp
lib/Transforms/Utils/PredicateInfo.cpp
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
lib/Transforms/Utils/SplitModule.cpp