-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Make JitOptRepeat available in Release builds #100494
Make JitOptRepeat available in Release builds #100494
Conversation
@AndyAyersMS PTAL |
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
|
||
CONFIG_INTEGER(JitDoIfConversion, W("JitDoIfConversion"), 1) // Perform If conversion | ||
|
||
#endif // defined(OPT_CONFIG) | ||
|
||
CONFIG_INTEGER(JitEnableOptRepeat, W("JitEnableOptRepeat"), 0) // If zero, do not allow JitOptRepeat | ||
CONFIG_METHODSET(JitOptRepeat, W("JitOptRepeat")) // Runs optimizer multiple times on specified methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder - maybe it's worth making its default value *
so it will be enough to only define DOTNET_JitEnableOptRepeat
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
METHODSET doesn't have a default value.
I thought about getting rid of DOTNET_JitEnableOptRepeat
but after #94250 is merged, which enables OptRepeat in stress, I want a way to disable OptRepeat in stress.
Maybe we could instead have (after #94250 is merged):
- Default: OptRepeat enabled in stress.
DOTNET_JitOptRepeat=method set
: enable OptRepeat for exactly the specified methodsDOTNET_JitEnableOptRepeat=0
: disable OptRepeat in stress. Or maybe name itDOTNET_JitEnableOptRepeatStress
to be clear that's all it affects?- But, perhaps weirdly, if you set
DOTNET_JitOptRepeat=*
andDOTNET_JitEnableOptRepeat=0
, we still enable OptRepeat? (Maybe leaning towards renaming to DOTNET_JitEnableOptRepeatStress?)
- But, perhaps weirdly, if you set
Also, fix a problem in superpmi.py asmdiffs for Release builds where we got a divide by zero because release builds don't have PerfScore.
fa9652d
to
e6004c3
Compare
Also, fix a problem in superpmi.py asmdiffs for Release builds where we got a divide by zero because release builds don't have PerfScore.
Also, fix a problem in superpmi.py asmdiffs for Release builds where we got a divide by zero because release builds don't have PerfScore.