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

JIT: enable one particular flow opt when we have PGO #84875

Merged
merged 1 commit into from
Apr 15, 2023

Commits on Apr 15, 2023

  1. JIT: enable one particular flow opt when we have PGO

    This particular optimization seems to be a good idea, so not sure why
    the code was unwilling to do it if we had profile data.
    
    This optimization removes a "branch around":
    
    ``
    BlockA: jtrue (p) BlockC
    BlockB: {empty} jmp BlockD
    BlockC: ...
    ...
    BlockD: ...
    ```
    becomes
    
    ```
    BlockA: jtrue (!p) BlockD
    BlockC: ...
    ...
    BlockD: ...
    ```
    
    If later during code layout we decide we'd rather have
    ```
    BlockA: jtrue (p) BlockC
    BlockD: ...
    ...
    BlockC: ...
    ```
    we can still make that happen.
    AndyAyersMS committed Apr 15, 2023
    Configuration menu
    Copy the full SHA
    f1531d7 View commit details
    Browse the repository at this point in the history