Landing: 2985e0bd9b2a
Project / Subsystem
gcc / tree-ssa-strlen
Date
2026-04-23
Author
Avinal Kumar
Commit
2985e0bd9b2aee03a932e5ab406523a95c04de5f
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- tree-ssa-strlen
- patch_id
- —
- commit_hash
- 2985e0bd9b2aee03a932e5ab406523a95c04de5f
- source_type
- github
- headline
- tree-ssa-strlen: Use gimple_build/gimple_convert_to_ptrofftype
- tldr
- The strlen pass in GCC now uses gimple_build and gimple_convert_to_ptrofftype for building GIMPLE statements, simplifying the code.
- author
- Avinal Kumar
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • refactor
- • gimple
- • strlen
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-04-23T00:00:00.000Z
The tree-ssa-strlen pass in GCC now uses gimple_build and gimple_convert_to_ptrofftype for constructing GIMPLE statements, replacing older functions like convert_to_ptrofftype and force_gimple_operand_gsi. This simplifies the code and improves maintainability by using the preferred GIMPLE building APIs. This change is part of ongoing efforts to modernize and streamline GCC’s internal APIs.