|
|
|
|
|
by chrisseaton
1803 days ago
|
|
Register allocation is a great example of over-theorisation. People found that register allocation can be expressed as graph colouring, so they doubled-down and worked really hard to solve that pure problem, but then it turned out you can just do a very simple linear allocation heuristic and the generated code is basically as fast as solving the NP-hard problem. https://dl.acm.org/doi/abs/10.1145/330249.330250 |
|