[all-commits] [llvm/llvm-project] d6e3ad: [RISCV] Account for ADDI immediate range in select...
Philip Reames via All-commits
all-commits at lists.llvm.org
Wed Aug 27 06:58:49 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d6e3aded6b01911c68f63a9a77d33de8742d189c
https://github.com/llvm/llvm-project/commit/d6e3aded6b01911c68f63a9a77d33de8742d189c
Author: Philip Reames <preames at rivosinc.com>
Date: 2025-08-27 (Wed, 27 Aug 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/select-const.ll
Log Message:
-----------
[RISCV] Account for ADDI immediate range in select of two constants w/ zicond (#155471)
When choosing to materialize a select of two constants using zicond, we
have a choice of which direction to compute the delta. The prior cost
was looking only at the cost of the values without accounting for the
fact it's actually the delta which is the highest cost and that
sometimes the addend can fold into an addi.
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