Landing: cee53ed42c75

Project / Subsystem

gcc / wide-int

Date

2026-08-10

Author

Kael Andrew Alonzo Franco

Commit

cee53ed42c753a0c936e005b7dd15f029ca34da7

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
wide-int
patch_id
—
commit_hash
cee53ed42c753a0c936e005b7dd15f029ca34da7
source_type
github
headline
wide-int: Use return 1 instead of return len.
tldr
Optimizes wide-integer canonization by returning a constant 1, potentially speeding up C++ optimizers.
author
Kael Andrew Alonzo Franco
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • wide-int
  • • C++
discussion_id_link
—
bugzilla_pr
—
date
2026-08-10T00:00:00.000Z

This commit simplifies the canonize function in wide-int.cc by directly returning 1 instead of the variable len. Since len is known to be 1 in this context, this change is a minor optimization that can contribute to faster C++ compilation times by removing a redundant variable lookup.