Efficient global register allocation
Ian Rogers

TL;DR
This paper introduces a lightweight register allocation algorithm that significantly reduces the need for complex liveness analysis, enabling more flexible and efficient register management in compilers.
Contribution
The novel algorithm uses a 'future-active' set to minimize liveness modeling, improving flexibility and efficiency over traditional methods like graph coloring and linear scan.
Findings
Removes over 90% of liveness analysis for instructions
Reduces memory and runtime costs of register allocation
Improves handling of fixed registers and loop values
Abstract
In a compiler, an essential component is the register allocator. Two main algorithms have dominated implementations, graph coloring and linear scan, differing in how live values are modeled. Graph coloring uses an edge in an `interference graph' to show that two values cannot reside in the same register. Linear scan numbers all values, creates intervals between definition and uses, and then intervals that do not overlap may be allocated to the same register. For both algorithms the liveness models are computed at considerable runtime and memory cost. Furthermore, these algorithms do little to improve code quality, where the target architecture and register coalescing are important concerns. We describe a new register allocation algorithm with lightweight implementation characteristics. The algorithm introduces a `future-active' set for values that will reside in a register later in…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Embedded Systems Design Techniques · Algorithms and Data Compression
