about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-11-28 23:45:17 +0100
committerGitHub <noreply@github.com>2021-11-28 23:45:17 +0100
commit67762ffe35734c14b0aa1b90597dee164e73831a (patch)
tree9cde84b9a4477fdcba7fac9da4eefdb2ac36b759 /compiler/rustc_codegen_llvm/src/attributes.rs
parent9ef0bcfc6843f510027fd007a4bb2d999514e036 (diff)
parent8fa45295f44febfa7035caeb149b2adfaa58fc50 (diff)
downloadrust-67762ffe35734c14b0aa1b90597dee164e73831a.tar.gz
rust-67762ffe35734c14b0aa1b90597dee164e73831a.zip
Rollup merge of #90833 - tmiasko:optimization-remarks, r=nikic
Emit LLVM optimization remarks when enabled with `-Cremark`

The default diagnostic handler considers all remarks to be disabled by
default unless configured otherwise through LLVM internal flags:
`-pass-remarks`, `-pass-remarks-missed`, and `-pass-remarks-analysis`.
This behaviour makes `-Cremark` ineffective on its own.

Fix this by configuring a custom diagnostic handler that enables
optimization remarks based on the value of `-Cremark` option. With
`-Cremark=all` enabling all remarks.

Fixes #90924.

r? `@nikic`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions