[all-commits] [llvm/llvm-project] aba430: Use llvm::sort instead of std::sort where possible

Dmitri Gribenko via All-commits all-commits at lists.llvm.org
Sat Jul 23 06:19:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aba43035bdf89c08409f0efccaf5408165abed9e
      https://github.com/llvm/llvm-project/commit/aba43035bdf89c08409f0efccaf5408165abed9e
  Author: Dmitri Gribenko <gribozavr at gmail.com>
  Date:   2022-07-23 (Sat, 23 Jul 2022)

  Changed paths:
    M clang-tools-extra/clang-include-fixer/IncludeFixerContext.cpp
    M clang-tools-extra/clang-reorder-fields/ReorderFieldsAction.cpp
    M clang-tools-extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
    M clang-tools-extra/clang-tidy/llvm/IncludeOrderCheck.cpp
    M clang-tools-extra/clang-tidy/misc/ConfusableTable/BuildConfusableTable.cpp
    M clang-tools-extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp
    M clang-tools-extra/clangd/IncludeFixer.cpp
    M clang-tools-extra/pseudo/lib/grammar/LRTableBuild.cpp
    M clang/lib/CodeGen/TargetInfo.cpp
    M clang/unittests/Tooling/TransformerTest.cpp
    M lld/COFF/Chunks.cpp
    M lld/COFF/DLL.cpp
    M lld/COFF/DriverUtils.cpp
    M lld/ELF/SyntheticSections.cpp
    M llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
    M llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
    M llvm/lib/MC/MCPseudoProbe.cpp
    M llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
    M llvm/lib/Target/DirectX/DXILWriter/DXILValueEnumerator.cpp
    M llvm/lib/Target/XCore/XCoreFrameLowering.cpp
    M llvm/unittests/ADT/SmallSetTest.cpp
    M llvm/unittests/MIR/MachineMetadata.cpp
    M llvm/unittests/Support/AlignmentTest.cpp
    M llvm/utils/TableGen/DXILEmitter.cpp
    M llvm/utils/TableGen/DirectiveEmitter.cpp
    M llvm/utils/TableGen/SearchableTableEmitter.cpp
    M llvm/utils/UnicodeData/UnicodeNameMappingGenerator.cpp
    M mlir/lib/Analysis/Liveness.cpp
    M mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp
    M mlir/lib/Dialect/SCF/Utils/Utils.cpp
    M mlir/lib/IR/AffineExpr.cpp

  Log Message:
  -----------
  Use llvm::sort instead of std::sort where possible

llvm::sort is beneficial even when we use the iterator-based overload,
since it can optionally shuffle the elements (to detect
non-determinism). However llvm::sort is not usable everywhere, for
example, in compiler-rt.

Reviewed By: nhaehnle

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




More information about the All-commits mailing list