Skip to content

Clean up JIT flags #87588

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

Merged
merged 16 commits into from
Jun 16, 2023
Merged

Clean up JIT flags #87588

merged 16 commits into from
Jun 16, 2023

Conversation

BruceForstall
Copy link
Member

@BruceForstall BruceForstall commented Jun 15, 2023

  1. Remove never set CORJIT_MCJIT_BACKGROUND.
  2. Remove never checked CORJIT_PINVOKE_RESTORE_ESP (x86 only). Remove related
    COMPUTED_IS_PRE_V4_ASSEMBLY, IS_PRE_V4_ASSEMBLY, IsPreV4Assembly().
  3. Remove unused CORJIT_FEATURE_SIMD.
  4. Remove all the "UNUSED" flags, which only cause clutter.
  5. Renumber/pack all the remaining flags. Ensure that all flags have unique
    numbers, even for different platforms.
  6. Add missing flags in a few cases: the JIT/CORJIT equality asserts, mcs "-jitflags"
    dumpers, CorJitFlagToString(), CorJitFlag type.

@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 Jun 15, 2023
@ghost ghost assigned BruceForstall Jun 15, 2023
@ghost
Copy link

ghost commented Jun 15, 2023

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

Issue Details

null

Author: BruceForstall
Assignees: BruceForstall
Labels:

area-CodeGen-coreclr

Milestone: -

1. Remove never set CORJIT_MCJIT_BACKGROUND.
2. Remove never checked CORJIT_PINVOKE_RESTORE_ESP (x86 only). Remove related
`COMPUTED_IS_PRE_V4_ASSEMBLY`, `IS_PRE_V4_ASSEMBLY`, `IsPreV4Assembly()`.
3. Remove unused CORJIT_FEATURE_SIMD.
4. Remove all the "UNUSED" flags, which only cause clutter.
5. Renumber/pack all the remaining flags. Ensure that all flags have unique
numbers, even for different platforms.
6. Add missing flags in a few cases: the JIT/CORJIT equality asserts, mcs "-jitflags"
dumpers, `CorJitFlagToString()`, `CorJitFlag` type.
@BruceForstall BruceForstall changed the title Clean up jit flags Clean up JIT flags Jun 15, 2023
@BruceForstall BruceForstall marked this pull request as ready for review June 15, 2023 15:26
@BruceForstall
Copy link
Member Author

@AndyAyersMS PTAL
cc @dotnet/jit-contrib

@AaronRobinsonMSFT PTAL at the CORJIT_PINVOKE_RESTORE_ESP related change

Copy link
Member

@AaronRobinsonMSFT AaronRobinsonMSFT left a comment

Choose a reason for hiding this comment

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

Great clean-up! Thanks @BruceForstall.

@BruceForstall
Copy link
Member Author

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@BruceForstall
Copy link
Member Author

I updated this to remove all the unused JIT-EE interface methods/types listed in #86672. There is one commit for each item removed. (Maybe this change should be merged without squashing, to preserve that?)

@jkotas @AaronRobinsonMSFT PTAL

@BruceForstall
Copy link
Member Author

Test failures all look known or infra.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Nice!

@jkotas
Copy link
Member

jkotas commented Jun 16, 2023

Maybe this change should be merged without squashing, to preserve that?

Sounds good to me. I am going to merge as rebase.

@jkotas jkotas merged commit b84612b into dotnet:main Jun 16, 2023
@BruceForstall BruceForstall deleted the CleanUpJitFlags branch June 16, 2023 22:58
@AaronRobinsonMSFT
Copy link
Member

I updated this to remove all the unused JIT-EE interface methods/types listed in #86672.

❤️

@ghost ghost locked as resolved and limited conversation to collaborators Jul 17, 2023
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.

4 participants