10 references to IsOptimizationEnabled
illink (10)
Linker.Dataflow\DynamicallyAccessedMembersTypeHierarchy.cs (1)
88
bool applyOptimizeTypeHierarchyAnnotations = (annotation != DynamicallyAccessedMemberTypes.None) && !_context.
IsOptimizationEnabled
(CodeOptimizations.OptimizeTypeHierarchyAnnotations, type);
Linker.Steps\MarkStep.cs (7)
528
bool unusedInterfacesOptimizationEnabled = Context.
IsOptimizationEnabled
(CodeOptimizations.UnusedInterfaces, type);
666
if (!Context.
IsOptimizationEnabled
(CodeOptimizations.OverrideRemoval, overrideInformation.Override))
690
if (Context.
IsOptimizationEnabled
(CodeOptimizations.OverrideRemoval, overrideInformation.Override) && Annotations.IsInstantiated (overrideInformation.Override.DeclaringType)) {
694
Debug.Assert (!Context.
IsOptimizationEnabled
(CodeOptimizations.OverrideRemoval, overrideInformation.Override) || overrideInformation.Base.IsAbstract);
1115
if (type.IsBeforeFieldInit && Context.
IsOptimizationEnabled
(CodeOptimizations.BeforeFieldInit, type))
2345
if (!Context.
IsOptimizationEnabled
(CodeOptimizations.UnusedInterfaces, type))
3471
if (Context.
IsOptimizationEnabled
(CodeOptimizations.UnreachableBodies, body.Method) && IsUnreachableBody (processedMethodBody)) {
Linker.Steps\UnreachableBlocksOptimizer.cs (1)
233
if (!_context.
IsOptimizationEnabled
(CodeOptimizations.IPConstantPropagation, method))
Linker\MemberActionStore.cs (1)
103
if (!_context.
IsOptimizationEnabled
(CodeOptimizations.SubstituteFeatureGuards, method))