|
|
|
|
|
by ebiederm
6 hours ago
|
|
A small nit. The problem of assigning registers to values (in SSA form) has a single pass optimal solution. Adding other complexities such as when to spill, and the possibility of reordering computation to reduce the number of registers makes the problem more difficult. All of which makes me wonder how many of the "NP-hard problems" are in fact easier problems that a covering general case is hard |
|
That's why it's a simpler problem with a polynomial time solution, not a magical bypass for np-completeness.