[Mlir-commits] [mlir] [mlir][memref] Add foldUseDominateCast function to castOp (PR #168337)
Mehdi Amini
llvmlistbot at llvm.org
Mon Nov 17 06:53:03 PST 2025
================
@@ -793,8 +795,32 @@ bool CastOp::areCastCompatible(TypeRange inputs, TypeRange outputs) {
return false;
}
+static OpFoldResult foldUseDominateCast(CastOp castOp) {
+ auto funcOp = castOp->getParentOfType<FunctionOpInterface>();
+ if (!funcOp)
+ return {};
----------------
joker-eph wrote:
Why is this check here?
https://github.com/llvm/llvm-project/pull/168337
More information about the Mlir-commits
mailing list