[all-commits] [llvm/llvm-project] 6f1591: [RISCV] Simplify predicates with llvm::countr_zero...

kazutakahirata via All-commits all-commits at lists.llvm.org
Sat Jan 28 12:14:56 PST 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f15919d986d671be084eb4edce21ef76301808d
  Author: Kazu Hirata <kazu at google.com>
  Date:   2023-01-28 (Sat, 28 Jan 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVInstrInfoZb.td

  Log Message:
  [RISCV] Simplify predicates with llvm::countr_zero (NFC)

It takes less code (in C++ and the host assembly) to get rid of the
trailing zeros and compare against {3,5,9} than divide the immediate
by {3,5,9} and check to see if we have a power of 2.

More information about the All-commits mailing list