ACM SIGPLAN Notices · 1997 · 23 citations · 5 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersParallel AlgorithmsCompiler ConstructionControl-flow AnalysisData-flow AnalysisInstruction SchedulingMemory Hierarchy OptimizationRegister AllocationGlobal Register AllocationGraph Coloring Register AllocationInterferenceLocal Register AllocationSpill Code InsertionSpilling
Many optimizing compilers perform global register allocation using a Chaitin-style graph coloring algorithm. Live ranges that cannot be allocated to registers are spilled to memory. The amount of code required to spill the live range depends on the spilling heuristic used. Chaitin's spilling heuristic offers some guidance in reducing the amount of spill code produced. However, this heuristic does not allow the partial spilling of live ranges and the reduction in spill code is limited to a local level. In this paper, we present a global technique called interference region spilling that improves the spilling granularity of any local spilling heuristic. Our technique works above the local spilling heuristic, limiting the normal insertion of spill code to a portion of each spilled live range. By partially spilling live ranges, we can achieve large reductions in dynamically executed spill code; up to 75% in some cases and an average of 33.6% across the benchmarks tested.
5
Register allocation & spilling via graph coloring
Gregory J. Chaitin · 1982 · 668 citations
Coloring heuristics for register allocation
Preston Briggs, Keith D. Cooper, Ken Kennedy et al. · ACM SIGPLAN Notices · 1989 · 36 citations
Spill code minimization techniques for optimizing compliers
Dennis S. Bernstein, Martin Charles Golumbic, Yishay Mansour et al. · ACM SIGPLAN Notices · 1989 · 33 citations · Full text
Preston Briggs, Keith D. Cooper, Linda Torczon · ACM SIGPLAN Notices · 1992 · 30 citations · Full text