Skip to content

Do we still need [AggressiveOptimization] on so many methods? #71261

Closed
@stephentoub

Description

@stephentoub

dotnet/coreclr#22191 added a bunch of [AggressiveOptimization] attributes to methods throughout SpanHelpers and elsewhere that make heavy use of intrinsics, e.g.

[MethodImpl(MethodImplOptions.AggressiveOptimization)]
public static bool Contains(ref byte searchSpace, byte value, int length)

After all of the inlining improvements made in .NET 6 and 7, are these still necessary and helping more than they hurt?

category:design
theme:basic-cq
skill-level:beginner
cost:small
impact:small

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions