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

AggressiveOptimization in InProcess toolchains #2335

Merged

Conversation

timcassell
Copy link
Collaborator

Follow-up to #1935, fixes #1934 for in-process toolchains.

@AndreyAkinshin AndreyAkinshin merged commit bc59d48 into dotnet:master Jul 20, 2023
7 checks passed
@timcassell timcassell deleted the inprocess-aggressiveoptimization branch July 20, 2023 08:12
@timcassell timcassell added this to the v0.13.7 milestone Jul 20, 2023
public static class CodeGenHelper
{
// AggressiveOptimization is not available in netstandard2.0, so just use the value casted to enum.
public const MethodImplOptions AggressiveOptimizationOption = (MethodImplOptions) 512;
Copy link
Member

Choose a reason for hiding this comment

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

is this value ignored by the older runtimes?

cc @AndyAyersMS who added the annotations with ifdefs

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I believe it will be ignored by older .NET Core and all .NET Framework versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure WorkloadActionUnroll and similar are optimized if possible
4 participants