Re: [PATCH] RISC-V: Implement reassociation width hook
Jeffrey Law <[email protected]> Mon, 3 Aug 2026 07:59:40 -0600
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <[email protected]> |
On 7/30/2026 6:01 AM, Wang Yaduo wrote: > Add per-tune integer, floating-point and vector reassociation widths. > Use 2/2/1 for generic-ooo and 3/2/1 for xt-c9501fdvt, while > keeping other tunes at the default width of one. > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_tune_param): Add reassociation > widths. > (generic_ooo_tune_info): Set reassociation widths. > (xt_c9501_tune_info): Likewise. > (riscv_reassociation_width): New function. > (TARGET_SCHED_REASSOCIATION_WIDTH): Define. > > gcc/testsuite/ChangeLog: > > * gcc.target/riscv/reassoc-or-chain.c: New test. Don't the rest of the uarch tuning structure initializers need a change since you added new fields to the structure? For those use whatever the current defaults are. jeff