ACM Transactions on Programming Languages and Systems · 1996 · 260 citations · 14 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersComputer ArchitectureControl-flow AnalysisData-flow AnalysisGraph ColoringInstruction SchedulingMemory Hierarchy OptimizationRegister AllocationCoalescingGraph Coloring Register AllocationGraph-based Interference ModelsInterferenceRegister CoalescingRegister Interference Graphs
An important function of any register allocator is to target registers so as to eliminate copy instructions. Graph-coloring register allocation is an elegant approach to this problem. If the source and destination of a move instruction do not interfere, then their nodes can be coalesced in the interference graph. Chaitin's coalescing heuristic could make a graph uncolorable (i.e., introduce spills); Briggs et al. demonstrated a conservative coalescing heuristic that preserves colorability. But Briggs's algorithm is too conservative and leaves too many move instructions in our programs. We show how to interleave coloring reductions with Briggs's coalescing heuristic, leading to an algorithm that is safe but much more aggressive.
14
Register allocation & spilling via graph coloring
Gregory J. Chaitin · ACM SIGPLAN Notices · 1982 · 767 citations · Full text
Register allocation via coloring
Gregory J. Chaitin, Marc Auslander, Ashok K. Chandra et al. · Computer Languages · 1981 · 731 citations
Register allocation & spilling via graph coloring
Gregory J. Chaitin · 1982 · 668 citations