[all-commits] [llvm/llvm-project] 41f7a8: [SPARC] Promote i32 CTTZ when we have VIS3

Koakuma via All-commits all-commits at lists.llvm.org
Sat Apr 26 08:16:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41f7a85317f4f345895395697f9129b10f1802b3
      https://github.com/llvm/llvm-project/commit/41f7a85317f4f345895395697f9129b10f1802b3
  Author: Koakuma <koachan at protonmail.com>
  Date:   2025-04-26 (Sat, 26 Apr 2025)

  Changed paths:
    M llvm/lib/Target/Sparc/SparcISelLowering.cpp
    M llvm/lib/Target/Sparc/SparcISelLowering.h
    M llvm/test/CodeGen/SPARC/cttz.ll

  Log Message:
  -----------
  [SPARC] Promote i32 CTTZ when we have VIS3

CTTZ can be implemented in terms of CTLZ, for which there's a native
instruction in VIS3.
Promote i32 CTTZ in that case so that the native instruction gets used.

Reviewers: rorth, brad0, s-barannikov

Reviewed By: s-barannikov

Pull Request: https://github.com/llvm/llvm-project/pull/135894



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