[all-commits] [llvm/llvm-project] 595544: [RISCV] Use QC_E_ADDI to improve codegen for icmp ...
Sudharsan Veeravalli via All-commits
all-commits at lists.llvm.org
Mon May 12 19:16:37 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 595544b79db64ff03d55ce21ed19bfe8993c5cd5
https://github.com/llvm/llvm-project/commit/595544b79db64ff03d55ce21ed19bfe8993c5cd5
Author: Sudharsan Veeravalli <quic_svs at quicinc.com>
Date: 2025-05-13 (Tue, 13 May 2025)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
M llvm/test/CodeGen/RISCV/i32-icmp.ll
Log Message:
-----------
[RISCV] Use QC_E_ADDI to improve codegen for icmp {eq, ne} with a constant (#139558)
Use the QC_E_ADDI instruction when the constant is not a signed 12 bit
value but is a signed 26 bit one. Don't use it if a single LUI
instruction can be used instead.
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