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

Enable New Pass Manager for Clang. #3346

Closed
wants to merge 1 commit into from

Commits on Feb 9, 2021

  1. Enable New Pass Manager for Clang.

    Clang has a new optimization pass manager activated by
    -fexperimental-new-pass-manager. It's been in development
    for several years, and by now generally performing better
    than the default. It is planned to be the new default in
    Clang 13, but even versions before that perform better with it,
    and it's stable enough that major software like Firefox has
    been using it already:
    https://bugzilla.mozilla.org/show_bug.cgi?id=1619461
    
    It's about 1% speedup for Stockfish.
    
    Result of 100 runs
    ==================
    base (...fish_clang12) =    1946851  +/- 3717
    test (./stockfish    ) =    1967276  +/- 3408
    diff                   =     +20425  +/- 2438
    
    speedup        = +0.0105
    P(speedup > 0) =  1.0000
    
    CPU: 4 x Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz
    Hyperthreading: on
    
    Thanks to David Major for making me aware of this part
    of LLVM development.
    gcp committed Feb 9, 2021
    Configuration menu
    Copy the full SHA
    f36b7ba View commit details
    Browse the repository at this point in the history