Skip to content

[RyuJIT][CQ] LSRA: Investigate separating cross-block lclVars from intra-block lclVars #7992

Open

Description

@CarolEidt

Much of LSRA work involves dealing with sets of vars that are live at block boundaries.
We could improve efficiency by ensuring that those sets are dense, and using a smaller set.
We would only need a larger set for the liveness set that's used during traversals.
This could be beneficial if 1) there are a large number of vars that are only live within a single block, and 2) the cost of the extra sorting and updating of the "current" copy of live vars doesn't adversely impact throughput.
Also, it may be possible to reuse tracked numbers for different basic blocks, to keep the sets small. The Intervals could still be different for the different lclNums with the same BB-local tracked var number.
category:throughput
theme:register-allocator
skill-level:expert
cost:large

Activity

  1. CarolEidt commented on Jun 1, 2017

    @CarolEidt
    ContributorAuthor

    In addition to ensuring that the sets of live lclVars at block boundaries are dense, we should ensure that non-register-candidates that are tracked (e.g. tracked structs that are not promoted) are not mixed in with the register candidates. Further, if the liveness info for non-register-candidates doesn't impact GC reporting, there is no reason to make those tracked after the optimization phases have completed.

  2. mikedn commented on Jun 1, 2017

    @mikedn
    Contributor

    Sort of related question: would it help LSRA to eliminate all SDSU intra-block lclvars?

  3. CarolEidt commented on Jun 1, 2017

    @CarolEidt
    ContributorAuthor

    Sort of related question: would it help LSRA to eliminate all SDSU intra-block lclvars?

    Yes, I think it would help (at a minimum it would eliminate the extra RefPosition associated with assigning the value. The question would be whether eliminating them would be more cost than the potential benefit.

  4. transferred this issue fromdotnet/coreclron Jan 31, 2020
  5. added this to the Future milestone on Jan 31, 2020
  6. ghost added
    backlog-cleanup-candidate
    on Feb 10, 2023
  7. ghost closed this as completedon Feb 24, 2023
  8. ghost locked as resolved and limited conversation to collaborators on Mar 26, 2023
  9. removed
    backlog-cleanup-candidate
    on Sep 12, 2023
  10. unlocked this conversation on Nov 24, 2023
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

    JitThroughputarea-CodeGen-coreclrenhancementtenet-performance

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions