Landing: b895ff602c12
Project / Subsystem
gcc / ada
Date
2025-03-25
Author
Piotr Trojanek
Commit
b895ff602c122ba2fd391ef1c7af4b504c4d19dd
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- b895ff602c122ba2fd391ef1c7af4b504c4d19dd
- source_type
- github
- headline
- Reuse Boolean_Literals in rewriting of accessibility checks
- tldr
- The Ada compiler now reuses existing Boolean literal entities when rewriting accessibility checks, improving code efficiency.
- author
- Piotr Trojanek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler
- • refactoring
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2025-03-25T00:00:00.000Z
This commit refactors the Ada compiler’s exp_ch4.adb to enhance how accessibility checks are handled. Specifically, the Expand_N_In function now reuses pre-existing Boolean_Literals entities (True/False arrays) instead of generating new ones during the rewriting of these checks. This is a code cleanup that improves the internal efficiency and maintainability of the compiler without altering its functional behavior.