[all-commits] [llvm/llvm-project] 82f0e3: Simplify BitVector code

serge-sans-paille via All-commits all-commits at lists.llvm.org
Wed Apr 14 12:29:17 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82f0e3d3ea6bf927e3397b2fb423abbc5821a30f
      https://github.com/llvm/llvm-project/commit/82f0e3d3ea6bf927e3397b2fb423abbc5821a30f
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2021-04-14 (Wed, 14 Apr 2021)

  Changed paths:
    M llvm/include/llvm/ADT/BitVector.h

  Log Message:
  -----------
  Simplify BitVector code

Instead of managing memory by hand, delegate it to std::vector. This makes the
code much simpler, and also avoids repeatedly computing the storage size.

According to valgrind --tool=callgrind, this also slightly decreases the
instruction count, but by a small margin.

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




More information about the All-commits mailing list