Landing: 19808ef87a78
Project / Subsystem
gcc / cfghooks
Date
2026-05-09
Author
Andrew Pinski
Commit
19808ef87a7862117310738b07a6c861a9092678
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cfghooks
- patch_id
- —
- commit_hash
- 19808ef87a7862117310738b07a6c861a9092678
- source_type
- github
- headline
- cfghooks: Move IR Type Inside cfghooks Structure
- tldr
- The IR type is now part of the `cfg_hooks` structure, which helps with future constification efforts.
- author
- Andrew Pinski
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cfg
- • refactor
- • ir
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-09T00:00:00.000Z
This commit moves the IR type (ir_type) inside the cfg_hooks structure. Previously, the IR type was determined by comparing variables, which complicated later changes. Moving the IR type into the cfg_hooks structure simplifies the code and paves the way for making the structure const, especially in scenarios where sel-sched overloads hooks.