[llvm-branch-commits] [llvm] [RISCV] Update the getCSRCost from 5 to 32768 (PR #239534)

Piyou Chen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Nov 8 18:00:11 PST 2026


BeMg wrote:

Here are the four combinations of the RegAlloc change and the CSRCost change, with their reduction in SPEC dynamic instruction count.

With both the RegAlloc change and the CSRCost change disabled as the baseline, the following table shows the dynamic instruction count for each combination (lower is better).

  | RegAlloc disable + CSRCost 32768 | RegAlloc Enable + CSRCost 5 | RegAlloc Enable + CSRCost 32768
-- | -- | -- | --
706.stockfish_r | 0.06% | 0.00% | 0.07%
707.ntest_r | -0.23% | 0.00% | 1.92%
708.sqlite_r | -3.92% | 0.00% | -2.71%
710.omnetpp_r | -1.70% | -0.99% | -4.42%
714.cpython_r | -8.28% | 0.08% | -9.71%
721.gcc_r | -5.28% | 0.00% | -6.89%
723.llvm_r | -3.69% | -0.02% | -5.75%
727.cppcheck_r | -4.39% | -0.01% | -23.18%
729.abc_r | -1.97% | 0.00% | -2.26%
734.vpr_r | -1.23% | -0.11% | -2.93%
735.gem5_r | -1.92% | -0.27% | -3.99%
750.sealcrypto_r | -0.25% | 0.00% | -4.38%
753.ns3_r | -1.22% | -0.39% | -2.61%
777.zstd_r | -0.18% | 0.00% | -0.14%
Geomean | -2.42% | -0.12% | -4.63%







https://github.com/llvm/llvm-project/pull/239534


More information about the llvm-branch-commits mailing list