Landing: b9cf6721ef0f

Project / Subsystem

gcc / risc-v

Date

2026-05-20

Author

Zhongyao Chen

Commit

b9cf6721ef0f13cd27d399024931634f571e9186

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
risc-v
patch_id
commit_hash
b9cf6721ef0f13cd27d399024931634f571e9186
source_type
github
headline
RISC-V: Adds RVV main-loop overhead comparison in cost model
tldr
GCC now compares RISC-V RVV main-loop overhead in the cost model to favor loop elimination.
author
Zhongyao Chen
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • risc-v
  • rvv
  • vectorization
  • cost model
  • optimization
discussion_id_link
bugzilla_pr
date
2026-05-20T00:00:00.000Z

This commit introduces a RISC-V RVV-specific loop-overhead comparison in the cost model. The compiler now prefers RVV mode that eliminates the main loop. This change helps the compiler to select the most efficient vectorization strategy for RISC-V architectures, potentially improving performance.