[all-commits] [llvm/llvm-project] 28ea50: [llvm] Populate std::vector at construction time (...

llvmbot via All-commits all-commits at lists.llvm.org
Mon Jan 18 10:22:16 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 28ea50f524b56e11b608ca1f768d2981579ebe75
      https://github.com/llvm/llvm-project/commit/28ea50f524b56e11b608ca1f768d2981579ebe75
  Author: Kazu Hirata <kazu at google.com>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M llvm/lib/ObjectYAML/DWARFEmitter.cpp
    M llvm/lib/ObjectYAML/MachOEmitter.cpp
    M llvm/lib/ProfileData/SampleProf.cpp

  Log Message:
  -----------
  [llvm] Populate std::vector at construction time (NFC)


  Commit: dc300beba7a849aac44c39ccc450a575db99bc14
      https://github.com/llvm/llvm-project/commit/dc300beba7a849aac44c39ccc450a575db99bc14
  Author: Kazu Hirata <kazu at google.com>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    M llvm/unittests/ADT/STLExtrasTest.cpp

  Log Message:
  -----------
  [STLExtras] Add a default value to drop_begin

This patch adds the default value of 1 to drop_begin.

In the llvm codebase, 70% of calls to drop_begin have 1 as the second
argument.  The interface similar to with std::next should improve
readability.

This patch converts a couple of calls to drop_begin as examples.

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


  Commit: 23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c
      https://github.com/llvm/llvm-project/commit/23b0ab2acb424e3e74722c0183e5c5ac84e6ea4c
  Author: Kazu Hirata <kazu at google.com>
  Date:   2021-01-18 (Mon, 18 Jan 2021)

  Changed paths:
    M llvm/lib/Analysis/LoopInfo.cpp
    M llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
    M llvm/lib/Analysis/ScalarEvolution.cpp
    M llvm/lib/Analysis/VFABIDemangling.cpp
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    M llvm/lib/CodeGen/SafeStackLayout.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
    M llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
    M llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
    M llvm/lib/Target/X86/X86MCInstLower.cpp
    M llvm/lib/Transforms/IPO/OpenMPOpt.cpp
    M llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
    M llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
    M llvm/lib/Transforms/Scalar/LoopInterchange.cpp
    M llvm/tools/llvm-xray/xray-stacks.cpp

  Log Message:
  -----------
  [llvm] Use the default value of drop_begin (NFC)


Compare: https://github.com/llvm/llvm-project/compare/a58aceffad61...23b0ab2acb42


More information about the All-commits mailing list