Landing: a7bad5e29fed
Project / Subsystem
gcc / ifcvt
Date
2026-09-06
Author
Kyrylo Tkachov
Commit
a7bad5e29fedc96cf9deb9eb3b77b2eb2136ef1b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ifcvt
- patch_id
- —
- commit_hash
- a7bad5e29fedc96cf9deb9eb3b77b2eb2136ef1b
- source_type
- github
- headline
- ifcvt: Use auto_vec in cond_move_process_if_block to simplify register management.
- tldr
- Simplifies register handling in ifcvt by using auto_vec, eliminating cleanup code.
- author
- Kyrylo Tkachov
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • refactor
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-06T00:00:00.000Z
This commit enhances the cond_move_process_if_block function in the GCC ifcvt pass by utilizing auto_vec for register lists. Previously, these lists were raw vec<rtx> requiring explicit cleanup via a goto label upon failure. By switching to auto_vec, the cleanup label, flag, and associated gotos are eliminated, resulting in cleaner code and reduced complexity without altering the pass’s functionality.