[Mlir-commits] [mlir] [mlir][tensor][bufferize] Reshapes: Fix memory side effects and memory space (PR #68195)

Nicolas Vasilache llvmlistbot at llvm.org
Thu Oct 5 05:04:39 PDT 2023


================
@@ -119,7 +119,10 @@ struct CollapseShapeOpInterface
                                                     tensor::CollapseShapeOp> {
   bool bufferizesToMemoryRead(Operation *op, OpOperand &opOperand,
                               const AnalysisState &state) const {
-    return false;
+    // tensor.collapse_shape may reallocate, at which point the source buffer is
----------------
nicolasvasilache wrote:

note that this is "conservative"

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


More information about the Mlir-commits mailing list