aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ModuleUtils.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2022-11-28 15:26:54 -0500
committerFrancis Visoiu Mistrih <francisvm@apple.com>2023-01-11 15:21:59 -0800
commitda09b35334aba76748a7531d96fd7e5ba1d66669 (patch)
tree1574e3556044c87dd699a50eb670f6568be7facf /llvm/lib/Transforms/Utils/ModuleUtils.cpp
parent72bdcee557745252c757f38dfded3e9e6babd810 (diff)
downloadllvm-da09b35334aba76748a7531d96fd7e5ba1d66669.zip
llvm-da09b35334aba76748a7531d96fd7e5ba1d66669.tar.gz
llvm-da09b35334aba76748a7531d96fd7e5ba1d66669.tar.bz2
[Matrix] Optimize matrix transposes around additions
First, sink the transposes to the operands to simplify redudant ones. Then, lift them to reduce the number of realized transposes. ``` (A + B)^T -> A^T + B^T -> (A + B)^T ``` See tests for more examples. Differential Revision: https://reviews.llvm.org/D133657
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions