Landing: 09cb7c0e9dca

Project / Subsystem

gcc / dom

Date

2026-05-15

Author

Andrew Pinski

Commit

09cb7c0e9dcab29232da92f1cc028454eec1c4c2

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
dom
patch_id
commit_hash
09cb7c0e9dcab29232da92f1cc028454eec1c4c2
source_type
github
headline
Dom: 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 in the dominator tree, improving compile time.
author
Andrew Pinski
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • compile time
  • switch statement
  • dominator tree
discussion_id_link
bugzilla_pr
date
2026-05-15T00:00:00.000Z

The compiler’s dominator tree construction 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.