In bubbleUpPackOpThroughGenericOp, we replaced the init operands with
a new tensor.empty if the operation was a pure element-wise op. This
behaviour is not wrong but not ideal because we "break" the original
use-def-chain of the output operand by materializing a new
tensor.empty. We should use tensor.empty as a destination *only* if the
initial init operand was already a tensor.empty, as we do in
PushDownUnpack.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo