Skip to content

Emit optimization remarks to the final binary, not the console #96705

Description

@tschuett

Since #90833 rustc prints remarks with -Cremark to the console.

LLVM can include the remarks into the executable. Then you can read the remarks and analyze them.

https://llvm.org/docs/Remarks.html

I never managed to thread the flags through rustc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-codegenArea: Code generationC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions