Skip to content

JIT: Opportunities to optimize away ExecutionContext saves/restores #117308

Open
@jakobbotsch

Description

@jakobbotsch

We should be able to optimize away saves/restores of ExecutionContext in some cases:

  1. If we can prove the ExecutionContext will not be read before we return then we can rely on the caller to restore its own ExecutionContext.
  2. We can collapse "save/call/restore, save/call/restore" sequences into "save/call/restore, call/restore" sequences instead if we can prove ExecutionContext is not changed between the second "restore" and "save".

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions