Skip to content

Investigate removing nops from substitutions #81339

Closed

Description

@MichalStrehovsky

#80896 (comment)

SR.GetResourceString is not getting inlined because the original method body was pretty big. What we're left with after rewriting is just a simple mov rcx, rax.

We'd need to basically redo how substitutions are processed.

I'm putting this in the future milestone. Ideally we should not have this code - we should use RyuJIT to do IL scanning and introduce ability to feed it substitutions. RyuJIT is much better at constant propagation than anything we would write in C#. No point maintaining two codebases. Just filing this for tracking.

Activity

  1. added
    size-reduction
    on Jan 29, 2023
  2. added this to the Future milestone on Jan 29, 2023
  3. ghost added
    in-pr
    on Feb 14, 2024
  4. ghost removed
    in-pr
    on Feb 14, 2024
  5. locked and limited conversation to collaborators on Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-NativeAOT-coreclrsize-reduction

    Type

    No type

    Projects

    • Status
      No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions