[all-commits] [llvm/llvm-project] 932d0c: Recommit "[RISCV] Prefer (select (x < 0), y, z) -...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Feb 6 10:30:13 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 932d0ce32540467260bb04f6ee1ecd98a4efa245
https://github.com/llvm/llvm-project/commit/932d0ce32540467260bb04f6ee1ecd98a4efa245
Author: Craig Topper <craig.topper at sifive.com>
Date: 2025-02-06 (Thu, 06 Feb 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/select-const.ll
Log Message:
-----------
Recommit "[RISCV] Prefer (select (x < 0), y, z) -> x >> (XLEN - 1) & (y - z) + z even with Zicond. (#125772)"
With the test changes.
Original message:
The Zicond version of this requires an li instruction and an
additional register.
Without Zicond we match this in a DAGCombine on RISCVISD::SELECT_CC.
This PR has 2 commits. I'll pre-commit the test change if this looks
good.
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