[all-commits] [llvm/llvm-project] 89b4b9: [ADT] Use llvm::bit_ceil (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jan 29 15:26:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89b4b9f0c8deefde5c5a1e45829bee29315ce20f
      https://github.com/llvm/llvm-project/commit/89b4b9f0c8deefde5c5a1e45829bee29315ce20f
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-01-29 (Sun, 29 Jan 2023)

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

  Log Message:
  -----------
  [ADT] Use llvm::bit_ceil (NFC)

For nonzero X, NextPowerOf2(X - 1) is equivalent to llvm::bit_ceil(X).




More information about the All-commits mailing list