Landing: 265461613f6e

Project / Subsystem

gcc / risc-v

Date

2026-05-01

Author

Michiel Derhaeg

Commit

265461613f6edd57450f1356a8782c92fc7c84f4

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
commit_hash
265461613f6edd57450f1356a8782c92fc7c84f4
source_type
github
headline
RISC-V: Move macro fusion logic to a separate file.
tldr
The RISC-V macro fusion logic was moved to riscv-fusion.cc to prevent riscv.cc from becoming too large.
author
Michiel Derhaeg
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • macro fusion
  • code organization
  • refactoring
discussion_id_link
bugzilla_pr
date
2026-05-01T00:00:00.000Z

The RISC-V backend’s macro fusion logic, specifically the riscv_macro_fusion_pair_p function, was moved from riscv.cc to a new file, riscv-fusion.cc. This change aims to improve code organization and maintainability as more fusion cases are added. New tests were added to verify existing fusion cases tied to specific microarchitecture tunings.