GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
risc-v Performance Win

RISC-V: Return matched macro-fusion operation for ready-list scheduling

New helper function in RISC-V backend identifies macro-fusion operations for better scheduling.

The RISC-V backend now uses a new helper function, riscv_get_fusion_pair_type, to identify and return matched macro-fusion operations. This change allows the ready-list scheduler to probe potential instruction pairs without generating dump records, improving scheduling efficiency.

In Details

The RISC-V backend's instruction scheduler has been enhanced to support macro-fusion. A new function, riscv_get_fusion_pair_type, is introduced to determine the specific macro-fusion operation for a pair of instructions. This enables the TARGET_SCHED_MACRO_FUSION_PAIR_P hook to return the matched operation, facilitating more accurate scheduling decisions during the ready-list phase without premature dumping.

Filed Under: risc-voptimizationscheduler