Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make more extensive use of lvaGetDesc() #61494

Merged
merged 1 commit into from
Nov 24, 2021

Commits on Nov 13, 2021

  1. Make more extensive use of lvaGetDesc()

    Including the version with a `GenTreeLclVarCommon*` overload.
    
    I mostly replaced `&lvaTable[varNum]` and `lvaTable + varNum`
    expressions, leaving `lvaTable[varNum].xxx`.
    
    Made many resulting `varDsc*` const.
    
    Removed unused `lvaRefCount`.
    
    Simplifies code, and centralizes assert checking.
    
    Added new `lvaGetLclNum(LclVarDsc*)` function to map back to a varNum.
    
    This deletes many `noway_assert` in favor of the lvaGetDesc `assert`;
    I'm not worried about removing asserts from the Release build.
    BruceForstall committed Nov 13, 2021
    Configuration menu
    Copy the full SHA
    ccf0b25 View commit details
    Browse the repository at this point in the history