diff options
| author | Adam Nemet <anemet@apple.com> | 2021-05-18 09:59:07 -0700 |
|---|---|---|
| committer | Adam Nemet <anemet@apple.com> | 2021-05-25 11:12:20 -0700 |
| commit | dfd1bbd00ac09b84c76cc5980cee1deb68475a04 (patch) | |
| tree | 3e1b7180b771867795b39c3d76e67632df469623 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 2ea6e13bf8189efb09cec89184b21f1db3de0d1c (diff) | |
[Matrix] Factor and distribute transposes across multiplies
Now that we can fold some transposes into multiplies (CM: A * B^t and RM:
A^t * B), we want to move them around to create the optimal expressions:
* fold away double transposes while still using them to assert the shape
* sink transposes hoping they cancel out
* lift transposes when both operands are transposed
This also modifies the matrix remarks to include the number of exposed
transposes (i.e. transposes that we couldn't fold into a multiply).
The adjustment to the test remarks-inlining is a bit subtle: I am changing the
double transpose to a single transpose so that we don't remove it completely.
More importantly this changes some of the total instruction count, most
notable stores because we can no longer use a vector store.
Differential Revision: https://reviews.llvm.org/D102733
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
