mesa: Reduce memory usage for reg alloc with many graph nodes (part 2).