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 AutoFDO. #87918

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Enable AutoFDO. #87918

merged 1 commit into from
Oct 8, 2021

Commits on Oct 6, 2021

  1. Enable AutoFDO.

    This largely involves implementing the options debug-info-for-profiling
    and profile-sample-use and forwarding them on to LLVM.
    
    AutoFDO can be used on x86-64 Linux like this:
    rustc -O -Cdebug-info-for-profiling main.rs -o main
    perf record -b ./main
    create_llvm_prof --binary=main --out=code.prof
    rustc -O -Cprofile-sample-use=code.prof main.rs -o main2
    
    Now `main2` will have feedback directed optimization applied to it.
    
    The create_llvm_prof tool can be obtained from this github repository:
    https://github.com/google/autofdo
    
    Fixes rust-lang#64892.
    mikebenfield committed Oct 6, 2021
    Configuration menu
    Copy the full SHA
    a17193d View commit details
    Browse the repository at this point in the history