Skip to content

JIT: it is difficult to do flow analysis on inlinees #82755

Closed

Description

@AndyAyersMS

Inlinee compilers allocate their blocks in the root compiler's flow graph pool, and use the root compiler's block numbering.

Because of this, running analysis on the inlinee compiler's flowgraph "fragment" proves tricky. We got a taste of this in #80958, where I had to introduce fgBBNumMin, whose value is only 1 for the root compiler.

For example, to use a BlockSet one must either use the root compiler's epoch (in which case the bit vectors and scratch storage based on fgBBNumMax are much too large) or else remember to consistently things downward (like bbID) by fgBBNumMin.

This impacts a lot of flow utility methods that might be useful to run on inlinee flowgraph fragments, eg fgDfsReversePostorder (see #82752).

It would be helpful to come up with a better model so that code can be written "naturally" but properly handle cases where it's invoked on inlinee graphs.

Activity

  1. ghost added
    area-CodeGen-coreclr
    on Feb 28, 2023
  2. ghost added
    untriaged
    on Feb 28, 2023
  3. added this to the 8.0.0 milestone on Feb 28, 2023
  4. self-assigned this
    on Feb 28, 2023
  5. ghost removed
    untriaged
    on Feb 28, 2023
  6. added a commit that references this issue on Mar 17, 2023
    bd63baa
  7. ghost added
    in-pr
    on Mar 17, 2023
  8. added a commit that references this issue on Mar 20, 2023
    de1a204
  9. ghost removed
    in-pr
    on Mar 20, 2023
  10. ghost locked as resolved and limited conversation to collaborators on Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-CodeGen-coreclr

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions