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

Resurrect: rustc_llvm: Add a -Z print-codegen-stats option to expose LLVM statistics. #113723

Merged
merged 4 commits into from
Jul 21, 2023

Commits on Jul 16, 2023

  1. rustc_llvm: Add a -Z print-llvm-stats option to expose LLVM statist…

    …ics.
    
    LLVM has a neat [statistics] feature that tracks how often optimizations kick
    in. It's very handy for optimization work. Since we expose the LLVM pass
    timings, I thought it made sense to expose the LLVM statistics too.
    
    [statistics]: https://llvm.org/docs/ProgrammersManual.html#the-statistic-class-stats-option
    pcwalton authored and khei4 committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    2d47816 View commit details
    Browse the repository at this point in the history
  2. Don't enable by default :)

    pcwalton authored and khei4 committed Jul 16, 2023
    Configuration menu
    Copy the full SHA
    138f522 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4d307c4 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2023

  1. address feedback from nikic and oli-obk https://github.com/rust-lang/…

    …rust/pull/113723/files
    
    use slice memcpy rather than strcpy and write it on stdout
    
    use println on failure
    
    Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de>
    khei4 and oli-obk committed Jul 20, 2023
    Configuration menu
    Copy the full SHA
    c7bf20d View commit details
    Browse the repository at this point in the history