Landing: 7459f9136500

Project / Subsystem

gcc / gcc/tree-ssa

Date

2026-07-21

Author

Kyrylo Tkachov

Commit

7459f9136500bfb881902834d56fb110b77909f2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/tree-ssa
patch_id
commit_hash
7459f9136500bfb881902834d56fb110b77909f2
source_type
github
headline
Preserve DECL_IGNORED_P for split partition declarations in out-of-SSA
tldr
The out-of-SSA pass now correctly preserves the `DECL_IGNORED_P` flag for split partition declarations, fixing potential register allocation issues at -O0.
author
Kyrylo Tkachov
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • gcc
  • compiler
  • optimization
  • ssa
discussion_id_link
bugzilla_pr
date
2026-07-21T00:00:00.000Z

The out-of-SSA transformation pass has been updated to correctly preserve the DECL_IGNORED_P flag when splitting overlapping partition declarations. This is particularly important at optimization level -O0, where incorrect handling of this flag could cause a replacement declaration to be allocated to a pseudo-register instead of memory, leading to conflicts. The change ensures that storage choices made during register coalescing are maintained, preventing issues with memory invariants.