-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Add JitOptRepeat configuration options #100154
Conversation
JitOptRepeat is still off by default. 1. Add a `DOTNET_JitEnableOptRepeat` option. By default this is zero, meaning OptRepeat is disabled. Set it to one to enable JitOptRepeat. Enabling it will allow OptRepeat to kick in during JitStress, but will not otherwise enable it. Also setting `DOTNET_JitOptRepeat` to a method set will enable JitOptRepeat for that exact set of methods. The number of repetitions is specified by `DOTNET_JitOptRepeatCount`. 2. Enable JitOptRepeat to kick in for stress (if `DOTNET_JitEnableOptRepeat` is set to non-zero). The repetition count is set randomly (based on method hash seed) between 2 and 5. 3. Add `DOTNET_JitOptRepeatRange`. This limits JitOptRepeat to a method hash range, for isolating JitOptRepeat related bad codegen.
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
This is extracted from #94250 to make that PR smaller. |
@AndyAyersMS PTAL |
This includes dotnet#100154, dotnet#100160, dotnet#100123
There are asm diffs because there are a few tests that set |
JitOptRepeat is still off by default.
DOTNET_JitEnableOptRepeat
option. By default this is zero, meaning OptRepeat is disabled. Set it to one to enable JitOptRepeat. Enabling it will allow OptRepeat to kick in during JitStress, but will not otherwise enable it. Also settingDOTNET_JitOptRepeat
to a method set will enable JitOptRepeat for that exact set of methods. The number of repetitions is specified byDOTNET_JitOptRepeatCount
.DOTNET_JitEnableOptRepeat
is set to non-zero). The repetition count is set randomly (based on method hash seed) between 2 and 5.DOTNET_JitOptRepeatRange
. This limits JitOptRepeat to a method hash range, for isolating JitOptRepeat related bad codegen.