[PATCH] D72453: [Matrix] Add optimization remarks for matrix expression.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 07:15:26 PST 2020
fhahn created this revision.
fhahn added reviewers: anemet, Gerolf, thegameg, hfinkel, andrew.w.kaylor, LuoYuanke.
Herald added subscribers: llvm-commits, tschuett, hiraditya.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D72453
Files:
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/test/Transforms/LowerMatrixIntrinsics/remarks.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72453.237078.patch
Type: text/x-patch
Size: 22983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200109/cc89d1ca/attachment.bin>
More information about the llvm-commits
mailing list