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

JIT: Add an in-release flag to enable physical promotion #84689

Merged

Conversation

jakobbotsch
Copy link
Member

Allow customers to enable this and also to be able to measure TP in the pass.

Allow customers to enable this and also to be able to measure TP in the
pass.
@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 Apr 12, 2023
@ghost ghost assigned jakobbotsch Apr 12, 2023
@ghost
Copy link

ghost commented Apr 12, 2023

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

Issue Details

Allow customers to enable this and also to be able to measure TP in the pass.

Author: jakobbotsch
Assignees: jakobbotsch
Labels:

area-CodeGen-coreclr

Milestone: -

@jakobbotsch
Copy link
Member Author

Example diffs that now show TP (the last one that was triggered with DOTNET_JitStressModeNames=STRESS_PHYSICAL_PROMOTION didn't): https://dev.azure.com/dnceng-public/public/_build/results?buildId=236163&view=ms.vss-build-web.run-extensions-tab

cc @dotnet/jit-contrib PTAL @AndyAyersMS

@jakobbotsch jakobbotsch requested a review from AndyAyersMS April 12, 2023 15:47
@@ -20,7 +20,7 @@ PhaseStatus Compiler::PhysicalPromotion()
return PhaseStatus::MODIFIED_NOTHING;
}

if (!compStressCompile(STRESS_PHYSICAL_PROMOTION, 25))
if ((JitConfig.JitEnablePhysicalPromotion() == 0) && !compStressCompile(STRESS_PHYSICAL_PROMOTION, 25))
Copy link
Member

Choose a reason for hiding this comment

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

Should this be || instead or do we want to do physical promotion if JitEnablePhysicalPromotion == 1 and !compStressCompile(STRESS_PHYSICAL_PROMOTION, 25) is true?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be && -- I want to allow it to be enabled by either JitEnablePhysicalPromotion=1 or the stress mode. compStressCompile is always false in release builds

@jakobbotsch jakobbotsch merged commit 7526a4c into dotnet:main Apr 12, 2023
@jakobbotsch jakobbotsch deleted the physical-promotion-jitoption-in-release branch April 12, 2023 16:56
@ghost ghost locked as resolved and limited conversation to collaborators May 12, 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.

2 participants