Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: make SSA IDs stable across passes #16754
@dr2chase has "no earthly idea" what this could be referring to. We believe the IDs are indeed stable across passes.
The only thing we can think of is that value IDs may be reused if the original value dies.
So perhaps this bug is just "remove the comment from the help text".
I had in mind implementing this by having a "value generation" slice that was non-nil only when generating SSA. Whenever a value id gets returned to the allocator, increment the value generation for that value id. Then use <value id, value generation> to label the HTML nodes, thereby making the highlighting accurately reflect the actual lifetime of the values. Same for blocks.
I'm going to re-open this but mark as unplanned, since the only audience for this is internal.