Landing: 6f3c04e20625

Project / Subsystem

gcc / uncprop

Date

2026-05-16

Author

Andrew Pinski

Commit

6f3c04e20625dee7c32b1ec43cb0812e38f4394b

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
uncprop
patch_id
commit_hash
6f3c04e20625dee7c32b1ec43cb0812e38f4394b
source_type
github
headline
Uncprop: Optimize compile time by storing only switch case values.
tldr
The compiler now stores only the case value instead of the entire CASE_LABEL_EXPR for switch statements, improving compile time.
author
Andrew Pinski
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • compile time
  • switch statement
discussion_id_link
bugzilla_pr
date
2026-05-16T00:00:00.000Z

The compiler’s unconstrained propagation pass now stores only the value of switch case labels instead of the entire CASE_LABEL_EXPR. This reduces memory usage during compilation, which improves compile time. Comments were added to clarify the code.