[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 07:54:36 PST 2024
================
@@ -457,6 +457,10 @@ struct SimplifyClones : public OpRewritePattern<CloneOp> {
}
Value source = cloneOp.getInput();
+ if (!memref::CastOp::areCastCompatible({source.getType()},
----------------
cxy-1993 wrote:
You are right. Upon reviewing why I wanted to exclude this test case earlier, it's because the process of generating "memref.cast" is not warped with "source.getType() != cloneOp.getType()" condition when I initially submitted this code, and this will cause error at that time. Thank you for your feedback, I have revised the code according to your comments.
https://github.com/llvm/llvm-project/pull/71310
More information about the Mlir-commits
mailing list