llvm-project/llvm/lib/Transforms/IPO
Mandeep Singh Grang 636d94db3b [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

llvm-svn: 330059
2018-04-13 19:47:57 +00:00
..
AlwaysInliner.cpp AlwaysInliner: Alow setting InsertLifetime in the new-style pass 2018-01-08 22:07:42 +00:00
ArgumentPromotion.cpp [ArgumentPromotion] don't break musttail invariant PR36543 2018-03-02 00:59:27 +00:00
BarrierNoopPass.cpp
BlockExtractor.cpp BlockExtractor: Don’t delete functions directly 2018-03-12 22:28:18 +00:00
CMakeLists.txt Transforms: Introduce Transforms/Utils.h rather than spreading the declarations amongst Scalar.h and IPO.h 2018-03-28 17:44:36 +00:00
CalledValuePropagation.cpp Attempt to unbreak the expensive-checks-win bot 2017-10-25 22:46:34 +00:00
ConstantMerge.cpp [Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-10-10 22:49:55 +00:00
CrossDSOCFI.cpp Don't call skipModule for CFI lowering passes. 2018-04-12 22:04:11 +00:00
DeadArgumentElimination.cpp [DeadArgElim] Remove allocsize attributes on callsites 2018-04-12 02:06:01 +00:00
ElimAvailExtern.cpp [Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-10-10 22:49:55 +00:00
ExtractGV.cpp Remove redundant includes from lib/Transforms. 2017-12-13 21:31:01 +00:00
ForceFunctionAttrs.cpp Fix bad copy-and-paste in r329108 2018-04-03 21:40:27 +00:00
FunctionAttrs.cpp [PM][FunctionAttrs] add NoUnwind attribute inference to PostOrderFunctionAttrs pass 2018-03-23 21:46:16 +00:00
FunctionImport.cpp Make helpers static. NFC. 2018-04-04 11:45:11 +00:00
GlobalDCE.cpp Remove redundant includes from lib/Transforms. 2017-12-13 21:31:01 +00:00
GlobalOpt.cpp Fix a couple of layering violations in Transforms 2018-03-21 22:34:23 +00:00
GlobalSplit.cpp [Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-10-10 22:49:55 +00:00
IPConstantPropagation.cpp Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
IPO.cpp Transforms: Introduce Transforms/Utils.h rather than spreading the declarations amongst Scalar.h and IPO.h 2018-03-28 17:44:36 +00:00
InferFunctionAttrs.cpp Remove redundant includes from lib/Transforms. 2017-12-13 21:31:01 +00:00
InlineSimple.cpp Remove redundant includes from lib/Transforms. 2017-12-13 21:31:01 +00:00
Inliner.cpp Fix a couple of layering violations in Transforms 2018-03-21 22:34:23 +00:00
Internalize.cpp
LLVMBuild.txt Another try to commit 323321 (aggressive instruction combine). 2018-01-25 12:06:32 +00:00
LoopExtractor.cpp Transforms: Introduce Transforms/Utils.h rather than spreading the declarations amongst Scalar.h and IPO.h 2018-03-28 17:44:36 +00:00
LowerTypeTests.cpp [Transforms] Change std::sort to llvm::sort in response to r327219 2018-04-13 19:47:57 +00:00
MergeFunctions.cpp [Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-10-19 21:21:30 +00:00
PartialInlining.cpp [PartialInlining] Use isInlineViable to detect constructs preventing inlining. 2018-03-10 14:53:44 +00:00
PassManagerBuilder.cpp Transforms: Introduce Transforms/Utils.h rather than spreading the declarations amongst Scalar.h and IPO.h 2018-03-28 17:44:36 +00:00
PruneEH.cpp Fix a couple of layering violations in Transforms 2018-03-21 22:34:23 +00:00
SCCP.cpp Fix layering between SCCP and IPO SCCP 2018-03-22 21:41:29 +00:00
SampleProfile.cpp [Transforms] Change std::sort to llvm::sort in response to r327219 2018-04-13 19:47:57 +00:00
StripDeadPrototypes.cpp
StripSymbols.cpp Fix a couple of layering violations in Transforms 2018-03-21 22:34:23 +00:00
SyntheticCountsPropagation.cpp [SyntheticCounts] Rewrite the code using only graph traits. 2018-01-25 22:02:29 +00:00
ThinLTOBitcodeWriter.cpp Pass a module reference to CloneModule. 2018-02-14 19:50:40 +00:00
WholeProgramDevirt.cpp Fix warning by cl::opt<int> -> cl::opt<unsigned> 2018-04-06 21:41:17 +00:00