Skip to content

[TODO-List-Cleanup] Delete dead code from InferStructOpSizeAlign - #61880

Merged
BruceForstall merged 1 commit into
dotnet:mainfrom
SingleAccretion:TODO-List-Cleanup-Alignment-Code
Nov 24, 2021
Merged

[TODO-List-Cleanup] Delete dead code from InferStructOpSizeAlign#61880
BruceForstall merged 1 commit into
dotnet:mainfrom
SingleAccretion:TODO-List-Cleanup-Alignment-Code

Conversation

@SingleAccretion

@SingleAccretionSingleAccretion commented Nov 20, 2021

Copy link
Copy Markdown
Contributor

The method's only caller is InferOpSizeAlign.

That is in turn only used in LCL_FLD stress, which only looks at locals with non-struct types.

And fgInitArgInfo, which only allows 3 nodes with TYP_STRUCT: OBJ, LCL_VAR and MKREFANY.

Thus, this code is dead. Not surprising, considering it was looking for the old GT_COPYBLK representation.

No diffs.

The method's only caller is InferOpSizeAlign.
That is in turn only used in LCL_FLD stress, which
only looks at locals with non-struct types.
And "fgInitArgInfo", which only allows 3 nodes with
TYP_STRUCT: OBJ, LCL_VAR and MKREFANY.
Thus, this code is dead. Not surprising, considering
it was looking for the old GT_COPYBLK representation.
@ghostghost added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member labels Nov 20, 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

The method's only caller is InferOpSizeAlign.

That is in turn only used in LCL_FLD stress, which only looks at locals with non-struct types.

And fgInitArgInfo, which only allows 3 nodes with TYP_STRUCT: OBJ, LCL_VAR and MKREFANY.

Thus, this code is dead. Not surprising, considering it was looking for the old GT_COPYBLK representation.

Author:SingleAccretion
Assignees:-
Labels:

area-CodeGen-coreclr

Milestone:-

@SingleAccretionSingleAccretion changed the title Delete dead code from InferStructOpSizeAlign[TODO-List-Cleanup] Delete dead code from InferStructOpSizeAlignNov 20, 2021
@SingleAccretion
SingleAccretion marked this pull request as ready for review November 20, 2021 21:18
@SingleAccretion

Copy link
Copy Markdown
ContributorAuthor

@dotnet/jit-contrib

@JulieLeeMSFT

Copy link
Copy Markdown
Member

@BruceForstall PTAL.

@BruceForstallBruceForstall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution!

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 SuperPMIcommunity-contributionIndicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@SingleAccretion@JulieLeeMSFT@BruceForstall