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

Delete GT_SIMD_CHK and GT_HW_INTRINSIC_CHK #62088

Merged

Conversation

SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Nov 26, 2021

The former was unused, the latter - barely used. Overall, there is no need for these to be separate opers, it just leads to unnecessary #ifdefs.

There are two commits with this change: first just mechanically deletes the opers, leaving for back-compat places where the array checks were treated differently. The second commit removes the distinction as it is not a useful one.

Since the bounds checks are (no longer) array-only, the remaining oper was renamed to simply GT_BOUNDS_CHECK.

Some diffs from the second commit, in particular the assertion propagation change.

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

ghost commented Nov 26, 2021

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

Issue Details

The former was unused, the latter - barely used. Overall, there is no need for these to be separate opers, it just leads to unnecessary #ifdefs.

There are two commits with this change: first just mechanically the opers, leaving for back-compat places where the array checks were treated different as they were. The second commit removes the distinction as it is not a useful one.

Since the bounds checks are (no longer) array-only, the remaining oper was renamed to simply GT_BOUNDS_CHECK.

Author: SingleAccretion
Assignees: -
Labels:

area-CodeGen-coreclr, community-contribution

Milestone: -

@SingleAccretion SingleAccretion marked this pull request as ready for review November 28, 2021 14:23
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

jakobbotsch
jakobbotsch previously approved these changes Nov 29, 2021
@jakobbotsch
Copy link
Member

Whoops, that approval was meant for #61911. 😄

@echesakov echesakov self-requested a review December 3, 2021 03:58
The former was unused, the latter - barely used.
Overall, there is no need for these to be separate
opers, it just leads to unnecessary `#ifdef`s.
In loop cloning: redundant with the check for constant lengths below.

In assertion propagation: needless pessimization.

In range check: not needed. While it is not useful to search for the
array lengths from "new int[] { ... }" expressions, it is still useful
to look for assertions related to them.
Copy link
Member

@AndyAyersMS AndyAyersMS left a comment

Choose a reason for hiding this comment

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

LGTM

@AndyAyersMS
Copy link
Member

@echesakov are you going to review as well?

@echesakov echesakov merged commit e7de86f into dotnet:main Dec 16, 2021
@SingleAccretion SingleAccretion deleted the More-Range-Check-Simplification branch December 17, 2021 09:28
@ghost ghost locked as resolved and limited conversation to collaborators Jan 16, 2022
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 community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants