1 comments

  • tonfa1 hour ago
    &gt; The best assignment is NP-hard to find, so all practical allocators use heuristics.<p>That said if you do the register allocation while the program is still in SSA form, it becomes polynomial (interference graph is a chordal graph).<p><a href="https:&#x2F;&#x2F;compilers.cs.uni-saarland.de&#x2F;projects&#x2F;ssara&#x2F;" rel="nofollow">https:&#x2F;&#x2F;compilers.cs.uni-saarland.de&#x2F;projects&#x2F;ssara&#x2F;</a>
    • zarakshR43 minutes ago
      Not quite, SSA form makes only the colouring pass polynomial time, optimal choice of spilling and coalescing is still NP-complete. cf. <a href="https:&#x2F;&#x2F;hal-lara.archives-ouvertes.fr&#x2F;hal-02102286v1&#x2F;document" rel="nofollow">https:&#x2F;&#x2F;hal-lara.archives-ouvertes.fr&#x2F;hal-02102286v1&#x2F;documen...</a>