File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mlir/lib/Dialect/MemRef/IR Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -850,7 +850,7 @@ void CopyOp::getCanonicalizationPatterns(RewritePatternSet &results,
850850// / If the source/target of a CopyOp is a CastOp that does not modify the shape
851851// / and element type, the cast can be skipped. Such CastOps only cast the layout
852852// / of the type.
853- static LogicalResult FoldCopyOfCast (CopyOp op) {
853+ static LogicalResult foldCopyOfCast (CopyOp op) {
854854 for (OpOperand &operand : op->getOpOperands ()) {
855855 auto castOp = operand.get ().getDefiningOp <memref::CastOp>();
856856 if (castOp && memref::CastOp::canFoldIntoConsumerOp (castOp)) {
@@ -865,7 +865,7 @@ LogicalResult CopyOp::fold(FoldAdaptor adaptor,
865865 SmallVectorImpl<OpFoldResult> &results) {
866866
867867 // / copy(memrefcast) -> copy
868- return FoldCopyOfCast (*this );
868+ return foldCopyOfCast (*this );
869869}
870870
871871// ===----------------------------------------------------------------------===//
You can’t perform that action at this time.
0 commit comments