Landing: 852928b45f1b

Project / Subsystem

gcc / ifcvt

Date

2026-07-22

Author

Kyrylo Tkachov

Commit

852928b45f1b4a4eb2dbea13a245814413dc147f

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ifcvt
patch_id
—
commit_hash
852928b45f1b4a4eb2dbea13a245814413dc147f
source_type
github
headline
ifcvt: use auto_bitmap for the local hand-managed bitmaps
tldr
Replaces manual bitmap management with RAII-style auto_bitmap for improved safety in the ifcvt pass.
author
Kyrylo Tkachov
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • ifcvt
  • • refactor
  • • memory management
  • • robustness
discussion_id_link
—
bugzilla_pr
—
date
2026-07-22T00:00:00.000Z

Several functions within GCC’s ifcvt pass that manually managed bitmaps using BITMAP_ALLOC and BITMAP_FREE have been updated to use auto_bitmap. This RAII-style approach ensures bitmaps are automatically freed upon exiting the scope, preventing potential memory leaks from incorrect BITMAP_FREE calls, especially when new exit paths are introduced. This change enhances robustness without altering optimization behavior.