Skip to content

PGO considerations for finally cloning #48925

@AndyAyersMS

Description

@AndyAyersMS

Current finally cloning algorithm is roughly:

   foreach try-finally in the method
       if the finally is not too big, not rare, and is not must throw
           find the "normal" exit path from the try-finally (lexically last exit)
           move the normal exit path to be the fall through path if necessary
           clone the finally and reroute the normal exit and any other exit that can share the normal path to the clone

With PGO data, we should reconsider:

At a minimum, we should do the rescaling.

category:cq
theme:profile-feedback

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    Status

    PGO

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions