[all-commits] [llvm/llvm-project] 3badd1: SmallPtrSet::find -> SmallPtrSet::count

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Sun Jun 7 13:38:27 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3badd17b6989621b5aa2732800f697dabbda034d
      https://github.com/llvm/llvm-project/commit/3badd17b6989621b5aa2732800f697dabbda034d
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2020-06-07 (Sun, 07 Jun 2020)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
    M lldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp
    M llvm/lib/Analysis/DependenceGraphBuilder.cpp
    M llvm/lib/Analysis/StackSafetyAnalysis.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Target/AMDGPU/GCNMinRegStrategy.cpp
    M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    M llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
    M llvm/lib/Transforms/Utils/BypassSlowDivision.cpp
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/tools/bugpoint/CrashDebugger.cpp

  Log Message:
  -----------
  SmallPtrSet::find -> SmallPtrSet::count

The latter is more readable and more efficient. While there clean up
some double lookups. NFCI.




More information about the All-commits mailing list