[all-commits] [llvm/llvm-project] 5f4ae5: [llvm] Remove uses of `std::vector<bool>`

Jan Svoboda via All-commits all-commits at lists.llvm.org
Tue Jan 18 09:20:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f4ae5645754043f087c2c4ac58c7bffb0921ce3
      https://github.com/llvm/llvm-project/commit/5f4ae5645754043f087c2c4ac58c7bffb0921ce3
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2022-01-18 (Tue, 18 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
    M llvm/lib/Analysis/DevelopmentModeInlineAdvisor.cpp
    M llvm/lib/Transforms/Utils/SampleProfileInference.cpp
    M llvm/tools/llvm-lto/llvm-lto.cpp
    M llvm/tools/llvm-rc/ResourceScriptParser.cpp
    M llvm/tools/llvm-rc/ResourceScriptStmt.h
    M llvm/tools/llvm-readobj/ELFDumper.cpp
    M llvm/unittests/Analysis/AssumeBundleQueriesTest.cpp
    M llvm/utils/TableGen/CodeGenInstruction.h
    M llvm/utils/TableGen/GlobalISel/GIMatchTree.h

  Log Message:
  -----------
  [llvm] Remove uses of `std::vector<bool>`

LLVM Programmer’s Manual strongly discourages the use of `std::vector<bool>` and suggests `llvm::BitVector` as a possible replacement.

This patch does just that for llvm.

Reviewed By: dexonsmith

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




More information about the All-commits mailing list