Search Results for

    Show / Hide Table of Contents

    Class DuplicateReturns

    An optimization that replaces direct jumps to blocks that return a copy of a value with the return itself.

    Inheritance
    object
    Optimization
    IntraproceduralOptimization
    DuplicateReturns
    Inherited Members
    IntraproceduralOptimization.IsCheckpoint
    IntraproceduralOptimization.ApplyAsync(MethodBody, OptimizationState)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.Compiler.Transforms
    Assembly: Flame.Compiler.dll
    Syntax
    public sealed class DuplicateReturns : IntraproceduralOptimization

    Fields

    | Edit this page View Source

    Instance

    An instance of the return duplication transform.

    Declaration
    public static readonly DuplicateReturns Instance
    Field Value
    Type Description
    DuplicateReturns

    Methods

    | Edit this page View Source

    Apply(FlowGraph)

    Applies this intraprocedural optimization to a flow graph.

    Declaration
    public override FlowGraph Apply(FlowGraph graph)
    Parameters
    Type Name Description
    FlowGraph graph

    The flow graph to transform.

    Returns
    Type Description
    FlowGraph

    A transformed flow graph.

    Overrides
    IntraproceduralOptimization.Apply(FlowGraph)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX