[all-commits] [llvm/llvm-project] 6ba2c2: [flang] Use std::clamp (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sat Aug 27 23:54:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ba2c28dee45cb349d882b2fdc2d3769fc901f58
      https://github.com/llvm/llvm-project/commit/6ba2c28dee45cb349d882b2fdc2d3769fc901f58
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-27 (Sat, 27 Aug 2022)

  Changed paths:
    M flang/runtime/extrema.cpp

  Log Message:
  -----------
  [flang] Use std::clamp (NFC)

The use of std::clamp here is safe because the definition of
largestLDKind gurantees that 8 <= largestLDKind.


  Commit: d1688e9ddfeda5043913c67eaf2ef28f9574a33b
      https://github.com/llvm/llvm-project/commit/d1688e9ddfeda5043913c67eaf2ef28f9574a33b
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-27 (Sat, 27 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/Utils.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
    M llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [llvm] Use std::gcd (NFC)

This patch replaces calls to greatestCommonDivisor with std::gcd where
both arguments are known to be of unsigned.  This means that
std::common_type_t of the two argument types should just be the wider
one of the two.


  Commit: d0166c617d77b9dd57e605cfb016438f202e9c9c
      https://github.com/llvm/llvm-project/commit/d0166c617d77b9dd57e605cfb016438f202e9c9c
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-27 (Sat, 27 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/SampleProfileInference.cpp

  Log Message:
  -----------
  [Utils] Remove redundaunt declarations (NFC)

Identified with readability-redundant-declaration.


  Commit: b18ff9c46112c1a1ae101e70378a8e2ba6ccc8ff
      https://github.com/llvm/llvm-project/commit/b18ff9c46112c1a1ae101e70378a8e2ba6ccc8ff
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-27 (Sat, 27 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/LowerTypeTests.cpp
    M llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
    M llvm/lib/Transforms/IPO/StripSymbols.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
    M llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
    M llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
    M llvm/lib/Transforms/Instrumentation/PoisonChecking.cpp
    M llvm/lib/Transforms/ObjCARC/ObjCARC.h
    M llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp
    M llvm/lib/Transforms/Scalar/Reassociate.cpp
    M llvm/lib/Transforms/Scalar/SCCP.cpp
    M llvm/lib/Transforms/Utils/CodeExtractor.cpp
    M llvm/lib/Transforms/Utils/Evaluator.cpp
    M llvm/lib/Transforms/Utils/FlattenCFG.cpp
    M llvm/lib/Transforms/Utils/LoopSimplify.cpp

  Log Message:
  -----------
  [Transform] Use range-based for loops (NFC)


Compare: https://github.com/llvm/llvm-project/compare/f119a2483d4f...b18ff9c46112


More information about the All-commits mailing list