Skip to content

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

Open
@tschuett

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.

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 generationT-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