diff --git a/mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp b/mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp --- a/mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp +++ b/mlir/lib/Dialect/Tensor/IR/TensorTilingInterfaceImpl.cpp @@ -617,8 +617,10 @@ // Create pad(extract_slice(x)). Value newSliceOp = b.create( loc, padOp.getSource(), newOffsets, newLengths, newStrides); - auto newPadOp = b.create(loc, Type(), newSliceOp, newLows, newHighs, - /*nofold=*/padOp.getNofold()); + auto newPadOp = b.create( + loc, Type(), newSliceOp, newLows, newHighs, + /*nofold=*/padOp.getNofold(), + getPrunedAttributeList(padOp, PadOp::getAttributeNames())); // Copy region to new PadOp. IRMapping bvm;