[Matrix] Propagate and use shape info for binary operators.
authorFlorian Hahn <flo@fhahn.com>
Fri, 27 Dec 2019 15:44:00 +0000 (15:44 +0000)
committerFlorian Hahn <flo@fhahn.com>
Fri, 27 Dec 2019 15:50:47 +0000 (15:50 +0000)
commitdc2c9b0fcf28d1d3d6f19ec15cb29dbbf1f43f9d
tree566d2dbc4a6b1df7cadd9363e51274cc467d5e35
parentf0722333dd167245eb3c2b4263529a1ce3679b5c
[Matrix] Propagate and use shape info for binary operators.

This patch extends the current shape propagation and shape aware
lowering to also support binary operators. Those operators are uniform
with respect to their shape (shape of the input operands is the same as
the shape of their result).

Reviewers: anemet, Gerolf, reames, hfinkel, andrew.w.kaylor

Reviewed By: anemet

Differential Revision: https://reviews.llvm.org/D70898
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/test/Transforms/LowerMatrixIntrinsics/bigger-expressions-double.ll
llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll