[all-commits] [llvm/llvm-project] a59e4a: [RISCV] Lower SELECT's with one constant more effi...

Ryan Buchner via All-commits all-commits at lists.llvm.org
Fri Jun 13 05:58:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a59e4acd753007c83594a6a56654025d4202a528
      https://github.com/llvm/llvm-project/commit/a59e4acd753007c83594a6a56654025d4202a528
  Author: Ryan Buchner <92571492+bababuck at users.noreply.github.com>
  Date:   2025-06-13 (Fri, 13 Jun 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
    M llvm/test/CodeGen/RISCV/short-forward-branch-opt.ll
    M llvm/test/CodeGen/RISCV/zicond-opts.ll

  Log Message:
  -----------
  [RISCV] Lower SELECT's with one constant more efficiently using Zicond (#143581)

See #143580 for MR with the test commit.

Performs the following transformations:
(select c, c1, t) -> (add (czero_nez t - c1, c), c1)
(select c, t, c1) -> (add (czero_eqz t - c1, c), c1)


@mgudim



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