[all-commits] [llvm/llvm-project] d5248a: [SystemZ] Use llvm::bit_floor (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Tue Jan 24 22:10:21 PST 2023


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

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZSelectionDAGInfo.cpp

  Log Message:
  -----------
  [SystemZ] Use llvm::bit_floor (NFC)

If x is known to be nonzero, findLastSet(x) returns the index of the
highest set bit counting from the LSB, so 1 << findLastSet(x) is the
same as llvm::bit_floor(x).




More information about the All-commits mailing list