No need to fill the buffer if no padding is added. I.e., the tensor.pad is packing only.
Also improve tensor::createPadHighOp to use attributes instead of SSA values for high padding sizes when possible.
Depends On: D153555
Differential D153874
[mlir][linalg] Do not emit FillOp for tensor.pad with zero padding springerm on Jun 27 2023, 7:24 AM. Authored by
Details No need to fill the buffer if no padding is added. I.e., the tensor.pad is packing only. Also improve tensor::createPadHighOp to use attributes instead of SSA values for high padding sizes when possible. Depends On: D153555
Diff Detail
Event Timeline
|
This seems strange. Why is there even a pad op if we don't have low pad or high pad. That seems like that pad should be folded away.