Skip to content

Review if (fgGlobalMorph) checks #122975

Open

Description

@tannergooding

As per #122368 (comment), some paths in morph restrict optimizations to only running as part of global morph and does so to avoid having to deal with VN updates. We should investigate whether these checks can be removed and whether we can keep VN up to date even if morph is called later, or whether we can stop calling morph entirely after VN.

Activity

  1. added
    untriaged
    on Jan 7, 2026
  2. added
    needs-area-label
    on Jan 7, 2026
  3. added
    tenet-performance
    area-CodeGen-coreclr
    and removed
    needs-area-label
    on Jan 7, 2026
  4. added this to the Future milestone on Jan 7, 2026
  5. removed
    untriaged
    on Jan 7, 2026
  6. dotnet-policy-service commented on Jan 7, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  7. MihuBot commented on Jan 7, 2026

    @MihuBot

    I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):

  8. jakobbotsch commented on Jan 8, 2026

    @jakobbotsch
    Member

    Yes, this was already done with #108875. The remaining checks are not for the sake of CSE candidates.

  9. reopened this on Jan 16, 2026
  10. EgorBo commented on Jan 16, 2026

    @EgorBo
    Member

    I think most of the if (fgGlobalMorph) still should be removed from morph. It's just that today that will most likely lead to CQ regressions when called from late phases, because morph erases VN during transformations. It should update it instead.

  11. changed the title [-]Consider removing some of the `if (fgGlobalMorph)` checks as it no longer interferes with CSE candidates[/-] [+]Review `if (fgGlobalMorph)` checks[/+] on Jan 22, 2026
  12. jakobbotsch commented on Jan 22, 2026

    @jakobbotsch
    Member

    I edited the title just to make it a bit clearer that it's not CSE candidate related anymore.

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-CodeGen-coreclrtenet-performance

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions