Deep Learning-based Hybrid Graph-Coloring Algorithm for Register Allocation
Dibyendu Das, Shahid Asghar Ahmad, Kumar Venkataramanan

TL;DR
This paper introduces a hybrid deep learning and traditional correction approach for graph coloring in register allocation, achieving near-optimal results for small interference graphs and competitive performance against LLVM's greedy allocator.
Contribution
It presents a novel hybrid algorithm combining LSTM-based deep learning with a post-processing correction phase for register allocation graph coloring.
Findings
Performs well on small interference graphs with optimal coloring.
Outperforms or matches LLVM's greedy register allocator on several benchmarks.
Effectively handles graphs with up to 100 nodes using a hybrid approach.
Abstract
Register allocation, which is a crucial phase of a good optimizing compiler, relies on graph coloring. Hence, an efficient graph coloring algorithm is of paramount importance. In this work we try to learn a good heuristic for coloring interference graphs that are used in the register allocation phase. We aim to handle moderate sized interference graphs which have 100 nodes or less. For such graphs we can get the optimal allocation of colors to the nodes. Such optimal coloring is then used to train our Deep Learning network which is based on several layers of LSTM that output a color for each node of the graph. However, the current network may allocate the same color to the nodes connected by an edge resulting in an invalid coloring of the interference graph. Since it is difficult to encode constraints in an LSTM to avoid invalid coloring, we augment our deep learning network with a…
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
TopicsProtein Degradation and Inhibitors · Parallel Computing and Optimization Techniques · Machine Learning and Algorithms
MethodsSigmoid Activation · Tanh Activation · Long Short-Term Memory
