[mlir][linalg] Fix pad tensor cast folding with changed type
`PadTensorOp` has verification logic to make sure result dim must be static if all the padding values are static. Cast folding might add more static information for the src operand of `PadTensorOp` which might change a valid operation to be invalid. Change the canonicalizing pattern to fix this.
parent
b06426da
Please register or sign in to comment