Skip to content

LLVM does not support PGO on Windows with -Cpanic=unwind #61002

Closed
@michaelwoerister

Description

@michaelwoerister

LLVM's "IR-level" instrumentation, which is used by rustc to generate PGO instrumented binaries, does not yet work with exception handling on Windows MSVC. The problem has been reported to LLVM for C++ here: https://bugs.llvm.org/show_bug.cgi?id=41279

This also affects Rust programs built with -Cpanic=unwind for Windows MSVC. As long as LLVM does not support exception handling there, it is a known limitation that PGO can only be used with -Cpanic=abort on this platform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.O-windows-msvcToolchain: MSVC, Operating system: WindowsT-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