Landing: 487ed3d78a77

Project / Subsystem

gcc / risc-v

Date

2026-07-22

Author

Jin Ma

Commit

487ed3d78a7725304da0d67b557c5dee093bf384

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
—
commit_hash
487ed3d78a7725304da0d67b557c5dee093bf384
source_type
github
headline
RISC-V: Return implied extensions by const reference.
tldr
RISC-V implied extensions are now returned by const reference to avoid vector copies.
author
Jin Ma
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • risc-v
  • • optimization
  • • compile-time
  • • const reference
discussion_id_link
—
bugzilla_pr
—
date
2026-07-22T00:00:00.000Z

This change optimizes the RISC-V architecture support by returning the implied_exts from riscv_ext_info_t by const reference instead of by value. This eliminates unnecessary vector copies that were causing a 6.7% compile-time regression at -O0 by reducing overhead during option parsing.