Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some VN refactoring #61034

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Oct 30, 2021

In my VN work, I've always found myself making small changes that improve the code in some minor way. Because the substantive changes to come must be focused solely on the functional parts, I've collected all the refactoring pieces in this PR.

No diffs for this change per SPMI, as expected.

Part of #58312.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Oct 30, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI and removed community-contribution Indicates that the PR has been added by a community member labels Oct 30, 2021
@ghost
Copy link

ghost commented Oct 30, 2021

Tagging subscribers to this area: @JulieLeeMSFT
See info in area-owners.md if you want to be subscribed.

Issue Details

In my VN work, I've always found myself making small changes that improve the code in some minor way. Because the substantive changes to come must be focused solely on the functional parts, I've collected all the refactoring pieces in this PR.

No diffs for this change per SPMI, as expected.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

It was unused and all the callers passed the current block anyway.

Also some renaming to make Assign and AssignTypeCoerce methods consistent.
By naming parameters properly.
By naming parameters properly.
In my upcoming substantive changes to this code the unreasonable level
of nesting started to significantly degrade the readability of code.

So, move it out of the main numbering function. The result is still
pretty huge and could be split up further, but this will do for now.
Make it use a loop instead of recursion.

Rename parameters to match the "Assign" variants.

Add standard header comments.
@SingleAccretion SingleAccretion force-pushed the Improve-Handling-Of-Type-Mismatch-In-VN-Detour branch from 19da386 to cc7838d Compare October 30, 2021 13:22
@SingleAccretion SingleAccretion marked this pull request as ready for review October 30, 2021 15:34
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

@JulieLeeMSFT
Copy link
Member

@jakobbotsch PTAL.

Copy link
Member

@jakobbotsch jakobbotsch left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@jakobbotsch jakobbotsch merged commit 4e7cf80 into dotnet:main Nov 2, 2021
@SingleAccretion SingleAccretion deleted the Improve-Handling-Of-Type-Mismatch-In-VN-Detour branch November 2, 2021 17:28
@ghost ghost locked as resolved and limited conversation to collaborators Dec 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants