Use llvm::stable_sort
authorFangrui Song <maskray@google.com>
Tue, 23 Apr 2019 14:51:27 +0000 (14:51 +0000)
committerFangrui Song <maskray@google.com>
Tue, 23 Apr 2019 14:51:27 +0000 (14:51 +0000)
commitefd94c56badf696ed7193f4a83c7a59f7dfbfc6e
tree63f7a8a57c367cf6ba845a80eda9177b62c516be
parent99cf58339fceadee43ba3fdbf962a083cd5af6c4
Use llvm::stable_sort

While touching the code, simplify if feasible.

llvm-svn: 358996
46 files changed:
llvm/include/llvm/ProfileData/GCOV.h
llvm/include/llvm/ProfileData/SampleProf.h
llvm/lib/Analysis/LoopAccessAnalysis.cpp
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Analysis/ScalarEvolutionExpander.cpp
llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/GlobalMerge.cpp
llvm/lib/CodeGen/IfConversion.cpp
llvm/lib/CodeGen/MachineBlockPlacement.cpp
llvm/lib/CodeGen/MachineOutliner.cpp
llvm/lib/CodeGen/MachinePipeliner.cpp
llvm/lib/CodeGen/MachineSink.cpp
llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
llvm/lib/CodeGen/StackColoring.cpp
llvm/lib/CodeGen/StackSlotColoring.cpp
llvm/lib/DebugInfo/PDB/Native/GSIStreamBuilder.cpp
llvm/lib/IR/MDBuilder.cpp
llvm/lib/IR/Metadata.cpp
llvm/lib/MC/MCDwarf.cpp
llvm/lib/MC/WasmObjectWriter.cpp
llvm/lib/ProfileData/Coverage/CoverageMappingWriter.cpp
llvm/lib/ProfileData/GCOV.cpp
llvm/lib/ProfileData/SampleProfWriter.cpp
llvm/lib/Support/Statistic.cpp
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/lib/Transforms/IPO/LowerTypeTests.cpp
llvm/lib/Transforms/IPO/MergeFunctions.cpp
llvm/lib/Transforms/Instrumentation/CFGMST.h
llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
llvm/lib/Transforms/Instrumentation/MaximumSpanningTree.h
llvm/lib/Transforms/Scalar/ConstantHoisting.cpp
llvm/lib/Transforms/Scalar/GVNHoist.cpp
llvm/lib/Transforms/Scalar/GVNSink.cpp
llvm/lib/Transforms/Scalar/LoopSink.cpp
llvm/lib/Transforms/Scalar/Reassociate.cpp
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
llvm/lib/Transforms/Utils/ASanStackFrameLayout.cpp
llvm/lib/Transforms/Utils/PredicateInfo.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
llvm/lib/XRay/Trace.cpp
llvm/utils/TableGen/AsmMatcherEmitter.cpp
llvm/utils/TableGen/CodeGenRegisters.cpp
llvm/utils/TableGen/GlobalISelEmitter.cpp
llvm/utils/TableGen/RISCVCompressInstEmitter.cpp