Landing: e02ce3b8c457

Project / Subsystem

gcc / gcc

Date

2026-08-04

Author

Andrew MacLeod

Commit

e02ce3b8c4574c81a943eb1084b0e0bf6a9955d5

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
e02ce3b8c4574c81a943eb1084b0e0bf6a9955d5
source_type
github
headline
Provide a DCE no-delete option.
tldr
GCC's Dead Code Elimination pass now offers a 'no-delete' option to replace dead statements with assignments to zero.
author
Andrew MacLeod
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • compiler
  • • optimization
  • • debugging
discussion_id_link
—
bugzilla_pr
—
date
2026-08-04T00:00:00.000Z

A new option has been added to GCC’s Dead Code Elimination (DCE) pass, allowing it to replace dead statements with assignments to zero instead of completely removing them. This change provides more control over the optimization process, particularly useful for debugging or specific analysis scenarios where the presence of zero assignments is informative.