Landing: 230d950810f3

Project / Subsystem

gcc / phiopt/cselim

Date

2026-08-25

Author

Andrea Pinski

Commit

230d950810f378a16c47ab981e0b9cf88b700622

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
phiopt/cselim
patch_id
—
commit_hash
230d950810f378a16c47ab981e0b9cf88b700622
source_type
github
headline
Support constants for cond_store_replacement_limited
tldr
Improve constant handling in conditional store replacement for better optimization.
author
Andrea Pinski
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • gcc
discussion_id_link
—
bugzilla_pr
—
date
2026-08-25T00:00:00.000Z

The conditional store replacement pass (cond_store_replacement_limited) now supports constants for stores, extending its capabilities beyond just SSA names. This change allows the optimization to handle more cases, similar to the full cselim pass, by rejecting clobbers instead of restricting replacements to SSA names or specific invariants. This should enable better optimization for code involving constants in conditional stores.