Inconsistent optimization remarks from rustc #142375
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to get optimization remarks about loop vectorization.
This code
is clearly vectorized by rustc:
Now I try to get optimization remark about this from compiler. I try two approaches: dedicated option
and passing arguments directly to LLVM:
I think there are several bugs here:
-Cllvm-args=--pass-remarks=.*
and-Cremark=all
produce different result (currently the former gives a lot of remarks but omits vectorizer and the latter reports a single remark from vectorizer)-Cremark=all
does not report remark from vectorizer-Cremark=loop-vectorize
does not report anything at all-Cllvm-args=--pass-remarks=.*
reports remarks only for vectorizerTested for
This was originally reported in comments here.
The text was updated successfully, but these errors were encountered: