Landing: 424bd64ef45e

Project / Subsystem

gcc / dce

Date

2026-08-13

Author

Andrea Pinski

Commit

424bd64ef45e001c425c18652d0dca1d7ad98928

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
dce
patch_id
—
commit_hash
424bd64ef45e001c425c18652d0dca1d7ad98928
source_type
github
headline
DCE fixes call removal condition for no_delete.
tldr
Dead Code Elimination now correctly handles calls marked as 'no_delete'.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • dce
  • • optimization
  • • correctness
discussion_id_link
—
bugzilla_pr
—
date
2026-08-13T00:00:00.000Z

The Dead Code Elimination (DCE) pass in GCC has been fixed to correctly handle calls that are marked as no_delete. Previously, a flawed conditional check allowed the left-hand side (LHS) of such calls to be removed, leading to incorrect code generation. This patch ensures that the LHS of calls with the no_delete attribute is not removed, preserving necessary operations.