Skip to content

Inefficient codegen for enum -> object -> int casts #55355

Closed

Description

@MichalPetryka

Description

The JIT usually optimizes box + unbox cases, this isn't the case for enum -> object -> int though. Filled per request from @EgorBo

Configuration

Sharplab Core CLR v5.0.721.25508

Regression?

No idea.

Data

Sharplab

Activity

  1. added
    tenet-performance
    on Jul 8, 2021
  2. ghost added
    area-CodeGen-coreclr
    on Jul 8, 2021
  3. ghost added
    untriaged
    on Jul 8, 2021
  4. added
    needs-further-triage
    and removed
    untriaged
    on Jul 8, 2021
  5. added this to the 6.0.0 milestone on Jul 8, 2021
  6. EgorBo commented on Jul 12, 2021

    @EgorBo
    Member

    I've made a proper fix but the jit-diff couldn't find any diffs so I delayed it to 7.0.0

  7. modified the milestones: 6.0.0, 7.0.0 on Jul 12, 2021
  8. removed
    needs-further-triage
    on Jul 12, 2021
  9. ghost added
    in-pr
    on Jun 2, 2022
  10. ghost removed
    in-pr
    on Jun 8, 2022
  11. ghost locked as resolved and limited conversation to collaborators on Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclrtenet-performance

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions