[Mlir-commits] [mlir] [mlir][bufferization] Clone simplify fails when input and result type not cast compatiable (PR #71310)

donald chen llvmlistbot at llvm.org
Thu Jan 11 06:33:58 PST 2024


================
@@ -457,6 +457,10 @@ struct SimplifyClones : public OpRewritePattern<CloneOp> {
     }
 
     Value source = cloneOp.getInput();
+    if (!memref::CastOp::areCastCompatible({source.getType()},
----------------
cxy-1993 wrote:

Sam type is considered "cast compatible".  This is just to prevent the generation of incompatible memref.cast.

https://github.com/llvm/llvm-project/pull/71310


More information about the Mlir-commits mailing list