[PATCH] D70897: [Matrix] Add forward shape propagation and first shape aware lowerings.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 05:43:01 PST 2019


fhahn created this revision.
fhahn added reviewers: anemet, Gerolf, reames, hfinkel, andrew.w.kaylor.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
fhahn updated this revision to Diff 231685.
fhahn added a comment.

strip unnecessary test changes


This patch adds infrastructure for forward shape propagation to
LowerMatrixIntrinsics. It also updates the pass to make use of
the shape information to break up larger vector operations and to
eliminate unnecessary conversion operations between columnwise matrixes
and flattened vectors: if shape information is available for an
instruction, lower the operation to a set of instructions operating on
columns. For example, a store of a matrix is broken down into separate
stores for each column. For users that do not have shape
information (e.g. because they do not yet support shape information
aware lowering), we pack the result columns into a flat vector and
update those users.

It also adds shape aware lowering for the first non-intrinsic
instruction: vector stores.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70897

Files:
  llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
  llvm/test/Transforms/LowerMatrixIntrinsics/bigger-expressions-double.ll
  llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll
  llvm/test/Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70897.231685.patch
Type: text/x-patch
Size: 89513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191202/a6325f34/attachment.bin>


More information about the llvm-commits mailing list