Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Nov 19, 2021

This just moves code out of RedundantSetElimination. This code will be
useful in a future PR to improve CoalesceLocals in the direction suggested
by @tlively in #4314 (comment)

@kripken kripken requested review from aheejin and tlively November 19, 2021 00:30
Comment on lines 58 to 59
// Reserve 0 for possible future use as a "null value".
Index nextValue = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no need to reserve a value now, even if we plan to introduce a special meaning in the future. These values should be opaque to all users, so changing them shouldn't break anything.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, yeah. I do find it useful to not use 0 when debugging locally, I guess mentally 0 feels "special" to me. I'll improve the comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just made it 0 for now, actually.

@kripken kripken enabled auto-merge (squash) November 20, 2021 00:16
@kripken kripken disabled auto-merge November 20, 2021 00:22
@kripken kripken merged commit d77e244 into main Nov 20, 2021
@kripken kripken deleted the vn branch November 20, 2021 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants