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

Matthias Springer llvmlistbot at llvm.org
Thu Jan 11 03:31:48 PST 2024


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

What if both have the same type? They they considered "cast compatible" or should you also check that `source.getType() != cloneOp.getType()`?


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


More information about the Mlir-commits mailing list