Closed
Description
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.