Landing: 0eeecd403f81

Project / Subsystem

gcc / gcc/forwprop

Date

2026-08-23

Author

Andrea Pinski

Commit

0eeecd403f81fce28daca37cdeffce3534ff85c4

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/forwprop
patch_id
—
commit_hash
0eeecd403f81fce28daca37cdeffce3534ff85c4
source_type
github
headline
forwprop: Optimize enum types to unsigned char
tldr
Reduces memory usage in the forward propagation pass by using unsigned char for enums.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • gcc
  • • memory usage
discussion_id_link
—
bugzilla_pr
—
date
2026-08-23T00:00:00.000Z

This commit optimizes the storage for two enumerations, long_mul_kind and long_mul_extract, within the tree-ssa-forwprop.cc file. By changing their underlying type from the default int to unsigned char, the compiler can potentially save space, as these enums are used in contexts where their values are small. This change is considered obvious and has been verified by bootstrapping and testing.