Landing: e0e794b089a1

Project / Subsystem

gcc / risc-v

Date

2026-08-06

Author

Wang Yaduo

Commit

e0e794b089a127e2e1a9660c3a7a6805c4566694

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
—
commit_hash
e0e794b089a127e2e1a9660c3a7a6805c4566694
source_type
github
headline
RISC-V: Add reassociation width hook for tuning
tldr
RISC-V tune parameters now specify reassociation widths for integer, float, and vector operations.
author
Wang Yaduo
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • risc-v
  • • optimization
  • • scheduler
discussion_id_link
—
bugzilla_pr
—
date
2026-08-06T00:00:00.000Z

This commit introduces the riscv_reassociation_width function and defines TARGET_SCHED_REASSOCIATION_WIDTH to allow per-tune reassociation widths for RISC-V targets. Specific tunes like ‘generic-ooo’ and ‘xt-c9501fdvt’ receive wider widths (2/2/1 and 3/2/1 respectively) for integer, floating-point, and vector operations, while others default to a width of one. This aims to improve instruction scheduling and performance by allowing more flexible instruction reordering.