[all-commits] [llvm/llvm-project] 375af7: [RISCV] Simplify the check for when to call EmitLo...

Craig Topper via All-commits all-commits at lists.llvm.org
Fri Jun 27 08:57:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 375af75efb2ed24f17c1d261bc3c094cac644509
      https://github.com/llvm/llvm-project/commit/375af75efb2ed24f17c1d261bc3c094cac644509
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2025-06-27 (Fri, 27 Jun 2025)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVISelLowering.cpp

  Log Message:
  -----------
  [RISCV] Simplify the check for when to call EmitLoweredCascadedSelect. NFC (#145930)

Based on the comments and tests, we only want to call
EmitLoweredCascadedSelect on selects of FP registers.

Everytime we add a new branch with immediate opcode, we've been
excluding it here.

This patch switches to checking that the comparison operands are both
registers so branch on immediate is automatically excluded.



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