[all-commits] [llvm/llvm-project] cbde21: Use APInt::popcount instead of APInt::countPopulat...

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Feb 19 11:29:26 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cbde2124f153f8fd084e8ff1221c0357442ea707
      https://github.com/llvm/llvm-project/commit/cbde2124f153f8fd084e8ff1221c0357442ea707
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-02-19 (Sun, 19 Feb 2023)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M llvm/include/llvm/ADT/APInt.h
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/include/llvm/Support/KnownBits.h
    M llvm/lib/Analysis/ConstantFolding.cpp
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    M llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
    M llvm/lib/Target/ARM/ARMISelLowering.cpp
    M llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/utils/TableGen/CodeGenSchedule.cpp
    M mlir/lib/Dialect/Math/IR/MathOps.cpp

  Log Message:
  -----------
  Use APInt::popcount instead of APInt::countPopulation (NFC)

This is for consistency with the C++20-style bit manipulation
functions in <bit>.




More information about the All-commits mailing list