Landing: 7cca1da5cca6

Project / Subsystem

gcc / gcc/ranger

Date

2026-09-29

Author

Aldy Hernandez

Commit

7cca1da5cca6521a389cceb6032125346b30bd90

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/ranger
patch_id
—
commit_hash
7cca1da5cca6521a389cceb6032125346b30bd90
source_type
github
headline
ranger: Refactor range_from_readonly_load into a class.
tldr
The ranger pass's `range_from_readonly_load` function is refactored into a class for better maintainability and future enhancements.
author
Aldy Hernandez
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • compiler pass
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-09-29T00:00:00.000Z

The range_from_readonly_load function in the ranger pass has been refactored into a class to better manage its state. This change encapsulates invariant data as class members, making the function easier to enhance, particularly for tasks like improving DOM parity in the ranger threader. The original recursive function is split into methods of the new class.