Landing: 891ea0b202c2

Project / Subsystem

gcc / phiopt

Date

2026-04-16

Author

Andrew Pinski

Commit

891ea0b202c2d55025847bbbb4d86d1f50f5257c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
phiopt
patch_id
commit_hash
891ea0b202c2d55025847bbbb4d86d1f50f5257c
source_type
github
headline
phiopt: Trigger CFG cleanup when cselim-limited makes changes.
tldr
The phiopt pass now triggers control flow graph cleanup when the cselim-limited optimization makes changes, preventing empty basic blocks.
author
Andrew Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • phi nodes
  • control flow graph
discussion_id_link
bugzilla_pr
date
2026-04-16T00:00:00.000Z

The phiopt pass now sets the cfgchanged flag when the cselim-limited optimization performs modifications. This ensures that a control flow graph (CFG) cleanup pass is triggered, removing any empty basic blocks that may be left behind by cselim-limited. This prevents the creation of empty basic blocks.