[Mlir-commits] [mlir] [mlir][Bufferization] castOrReallocMemRefValue: Use BufferizationOptions (PR #89175)

Matthias Springer llvmlistbot at llvm.org
Thu Apr 18 04:03:46 PDT 2024


================
@@ -75,7 +75,7 @@ BufferizeTypeConverter::BufferizeTypeConverter() {
       if (!rankedDestType)
         return nullptr;
       FailureOr<Value> replacement =
-          castOrReallocMemRefValue(builder, inputs[0], rankedDestType);
+          castOrReallocMemRefValue(builder, inputs[0], rankedDestType, {});
----------------
matthias-springer wrote:

Can you pass a `BufferizationOptions` object with `bufferAlignment = 0` here? Otherwise it will fall back to the default value of `64`. This should reduce the number of changed test cases.


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


More information about the Mlir-commits mailing list