[all-commits] [llvm/llvm-project] 675ecf: [RISCV] Use default promotion for i32 CTLZ_ZERO_UN...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Sep 10 15:57:06 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 675ecf6d73534c4c18081667e4b843561540c36a
      https://github.com/llvm/llvm-project/commit/675ecf6d73534c4c18081667e4b843561540c36a
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-09-10 (Wed, 10 Sep 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
    M llvm/test/CodeGen/RISCV/rv64xtheadbb.ll

  Log Message:
  -----------
  [RISCV] Use default promotion for i32 CTLZ_ZERO_UNDEF on RV64 with XTHeadBb. (#157955)

If we don't need to worry about the input being zero, we can shift the
input right by 32 and use TH_FF1.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list