diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-11-28 23:45:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-28 23:45:17 +0100 |
| commit | 67762ffe35734c14b0aa1b90597dee164e73831a (patch) | |
| tree | 9cde84b9a4477fdcba7fac9da4eefdb2ac36b759 /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 9ef0bcfc6843f510027fd007a4bb2d999514e036 (diff) | |
| parent | 8fa45295f44febfa7035caeb149b2adfaa58fc50 (diff) | |
| download | rust-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
