[all-commits] [llvm/llvm-project] 7f04a8: [mlir][func][bufferization] Fix cast incompatible ...
Longsheng Mou via All-commits
all-commits at lists.llvm.org
Mon Aug 26 16:06:22 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7f04a8ad131881b5a58b97c8191733ed42d18e20
https://github.com/llvm/llvm-project/commit/7f04a8ad131881b5a58b97c8191733ed42d18e20
Author: Longsheng Mou <moulongsheng at huawei.com>
Date: 2024-08-27 (Tue, 27 Aug 2024)
Changed paths:
M mlir/lib/Dialect/Bufferization/Transforms/FuncBufferizableOpInterfaceImpl.cpp
M mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize.mlir
Log Message:
-----------
[mlir][func][bufferization] Fix cast incompatible when bufferize callOp (#105929)
Handle caller/callee type mismatch using `castOrReallocMemRefValue`
instead of just a `CastOp`. The method insert a reallocation + copy if
it cannot be statically guaranteed that a direct cast would be valid.
Fix #105916.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list