mesa: Reduce the memory usage for reg alloc with many graph nodes (part 1)