Landing: 9bc916bc0620

Project / Subsystem

gcc / gcc/pru

Date

2026-03-25

Author

Dimitar Dimitrov

Commit

9bc916bc062063b69889fe1b8e304d500183edf0

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc/pru
patch_id
commit_hash
9bc916bc062063b69889fe1b8e304d500183edf0
source_type
github
headline
pru: Inline muldi3 when optimizing for speed
tldr
Inlines 32-bit multiplication operations for PRU when optimizing for speed, improving performance.
author
Dimitar Dimitrov
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • pru
  • optimization
  • inlining
discussion_id_link
bugzilla_pr
date
2026-03-25T00:00:00.000Z

When optimizing for speed, the compiler will now inline 32-bit multiplication sub-operations instead of calling a library function, saving instruction cycles at the cost of increased text section size. This optimization defines new patterns for umulsidi3 and muldi3, avoiding the overhead of function calls.