[Matrix] Propagate shape information through fneg
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 22 Jan 2021 19:16:11 +0000 (11:16 -0800)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 22 Jan 2021 22:34:28 +0000 (14:34 -0800)
commit0cc38acfc4e1dcdc2a9b6287bc93eef57acfd105
treea5e65d798342644a0854785787295493005706f4
parent19ec559c665e6490480cfdff9982b2c32a432b78
[Matrix] Propagate shape information through fneg

Similar to binary operators like fadd/fmul/fsub, propagate shape info
through unary operators (fneg is the only one?).

Differential Revision: https://reviews.llvm.org/D95252
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/test/Transforms/LowerMatrixIntrinsics/propagate-backward.ll
llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll