[all-commits] [llvm/llvm-project] 2ad7fd: [Instrumentation] Use std::clamp (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Aug 28 23:29:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ad7fd3ac7af15de84713d0e81fc7eeffd320aad
      https://github.com/llvm/llvm-project/commit/2ad7fd3ac7af15de84713d0e81fc7eeffd320aad
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-28 (Sun, 28 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp

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

The use of std::clamp should be safe here.  MinRZ is at most 32, while
kMaxRZ is 1 << 18, so we have MinRZ <= kMaxRZ, avoiding the undefind
behavior of std::clamp.


  Commit: 8feb60756c7c5d083bf0396dcd6d34e84bca8bc1
      https://github.com/llvm/llvm-project/commit/8feb60756c7c5d083bf0396dcd6d34e84bca8bc1
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-28 (Sun, 28 Aug 2022)

  Changed paths:
    M llvm/include/llvm/ProfileData/InstrProf.h
    M llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
    M llvm/lib/Target/SystemZ/SystemZInstrInfo.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp

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


  Commit: 0e9d37ff95b5c574a8fde65bb176691e1a17d70d
      https://github.com/llvm/llvm-project/commit/0e9d37ff95b5c574a8fde65bb176691e1a17d70d
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-28 (Sun, 28 Aug 2022)

  Changed paths:
    M llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
    M llvm/lib/ExecutionEngine/Orc/COFFPlatform.cpp
    M llvm/lib/IR/Constants.cpp
    M llvm/lib/IR/DebugInfo.cpp
    M llvm/lib/IR/Function.cpp
    M llvm/lib/IR/Metadata.cpp
    M llvm/lib/MC/MCWin64EH.cpp
    M llvm/lib/Option/ArgList.cpp
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/lib/TableGen/JSONBackend.cpp
    M llvm/lib/TableGen/TGParser.cpp

  Log Message:
  -----------
  [llvm] Qualify auto in range-based for loops (NFC)


  Commit: 20f0f15a4055d66fae494fc79bd76f14dee3954f
      https://github.com/llvm/llvm-project/commit/20f0f15a4055d66fae494fc79bd76f14dee3954f
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-08-28 (Sun, 28 Aug 2022)

  Changed paths:
    M bolt/include/bolt/Profile/DataReader.h
    M bolt/lib/Profile/DataAggregator.cpp
    M clang-tools-extra/clang-change-namespace/ChangeNamespace.cpp
    M clang-tools-extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/lib/Lower/IO.cpp

  Log Message:
  -----------
  Use StringRef::contains (NFC)


Compare: https://github.com/llvm/llvm-project/compare/eb438c80dfc4...20f0f15a4055


More information about the All-commits mailing list