aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-01-27 16:22:04 -0800
committerFlorian Hahn <flo@fhahn.com>2020-01-27 16:39:29 -0800
commit949294f39627421f4bfaaca7d5d9deacb33efbe0 (patch)
tree90bc7abcfeb2f36c69bd1b9ef6c5778d0aec7148 /clang/lib/Frontend/CompilerInvocation.cpp
parent6874dfce3aef4a0d85fc9d45f4c9c3d90cfcbf6e (diff)
downloadllvm-949294f39627421f4bfaaca7d5d9deacb33efbe0.zip
llvm-949294f39627421f4bfaaca7d5d9deacb33efbe0.tar.gz
llvm-949294f39627421f4bfaaca7d5d9deacb33efbe0.tar.bz2
[Matrix] Add optimization remarks for matrix expression.
Generate remarks for matrix operations in a function. To generate remarks for matrix expressions, the following approach is used: 1. Collect leafs of matrix expressions (done in RemarkGenerator::getExpressionLeafs). Leafs are lowered matrix instructions without other matrix users (like stores). 2. For each leaf, create a remark containing a linearizied version of the matrix expression. The following improvements will be submitted as follow-ups: * Summarize number of vector instructions generated for each expression. * Account for shared sub-expressions. * Propagate matrix remarks up the inlining chain. The information provided by the matrix remarks helps users to spot cases where matrix expression got split up, e.g. due to inlining not happening. The remarks allow users to address those issues, ensuring best performance. Reviewers: anemet, Gerolf, thegameg, hfinkel, andrew.w.kaylor, LuoYuanke Reviewed By: anemet Differential Revision: https://reviews.llvm.org/D72453
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions