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

Improve reachability sets computation #84204

Merged

Commits on Apr 1, 2023

  1. Improve reachability sets computation

    Two changes to improve the throughput of computing `bbReach` sets:
    1. In `fgComputeReachabilitySets()`, iterate over the blocks in reverse
    post-order. This leads to fewer outer `do ... while(change)` iterations.
    To do this, the `fgDfsReversePostorder()` function which creates the
    reverse post-order numbers and ordering was hoisted out of dominator
    creation and above reachability computation.
    2. Create a `BlockSetOps::UnionDChanged()` function that does a `UnionD`
    operation but also returns `true` if the target bitset changed value.
    
    Some additional stats were added under `COUNT_BASIC_BLOCKS` regarding
    how many iterations dominators and reachability computations take to
    converge.
    BruceForstall committed Apr 1, 2023
    Configuration menu
    Copy the full SHA
    53782ef View commit details
    Browse the repository at this point in the history
  2. Code review feedback

    BruceForstall committed Apr 1, 2023
    Configuration menu
    Copy the full SHA
    6d3eefc View commit details
    Browse the repository at this point in the history