Skip to content

Some VN refactoring - #61034

Merged
jakobbotsch merged 5 commits into
dotnet:mainfrom
SingleAccretion:Improve-Handling-Of-Type-Mismatch-In-VN-Detour
Nov 2, 2021
Merged

Some VN refactoring#61034
jakobbotsch merged 5 commits into
dotnet:mainfrom
SingleAccretion:Improve-Handling-Of-Type-Mismatch-In-VN-Detour

Conversation

@SingleAccretion

@SingleAccretionSingleAccretion commented Oct 30, 2021

Copy link
Copy Markdown
Contributor

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.

@ghostghost added community-contribution Indicates that the PR has been added by a community member 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
Copy Markdown

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
SingleAccretionforce-pushed the Improve-Handling-Of-Type-Mismatch-In-VN-Detour branch from 19da386 to cc7838dCompareOctober 30, 2021 13:22
@SingleAccretion
SingleAccretion marked this pull request as ready for review October 30, 2021 15:34
@SingleAccretion

Copy link
Copy Markdown
ContributorAuthor

@dotnet/jit-contrib

@JulieLeeMSFT

Copy link
Copy Markdown
Member

@jakobbotsch PTAL.

@jakobbotschjakobbotsch left a comment

Copy link
Copy Markdown
Member

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:mainNov 2, 2021
@SingleAccretion
SingleAccretion deleted the Improve-Handling-Of-Type-Mismatch-In-VN-Detour branch November 2, 2021 17:28
@ghostghost locked as resolved and limited conversation to collaborators Dec 2, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclrCLR 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

@SingleAccretion@JulieLeeMSFT@jakobbotsch