[Mlir-commits] [mlir] [MLIR] Add missing memory read effect on memref.reshape (PR #117130)
Uday Bondhugula
llvmlistbot at llvm.org
Thu Nov 21 00:49:24 PST 2024
https://github.com/bondhugula created https://github.com/llvm/llvm-project/pull/117130
Add missing memory read effect on memref.reshape. This in turn leads to
analyses relying on memory effects making incorrect conclusions.
>From 3c2f3608e4ab760354e720e052d354052f4a5145 Mon Sep 17 00:00:00 2001
From: Uday Bondhugula <uday at polymagelabs.com>
Date: Thu, 21 Nov 2024 03:35:45 +0530
Subject: [PATCH] [MLIR] Add missing memory read effect on memref.reshape
Add missing memory read effect on memref.reshape. This in turn leads to
analyses relying on memory effects making incorrect conclusions.
---
mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td b/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
index c50df6ccd9aa56..a0d8d34f38237a 100644
--- a/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
+++ b/mlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td
@@ -1529,7 +1529,8 @@ def MemRef_ReshapeOp: MemRef_Op<"reshape", [
}];
let arguments = (ins AnyRankedOrUnrankedMemRef:$source,
- MemRefRankOf<[AnySignlessInteger, Index], [1]>:$shape);
+ Arg<MemRefRankOf<[AnySignlessInteger, Index], [1]>,
+ "dynamically-sized shape", [MemRead]>:$shape);
let results = (outs AnyRankedOrUnrankedMemRef:$result);
let builders = [OpBuilder<
More information about the Mlir-commits
mailing list