[Mlir-commits] [mlir] 5b20d80 - [mlir] Mark std.subview as NoSideEffect

Tres Popp llvmlistbot at llvm.org
Mon Feb 22 00:35:35 PST 2021


Author: Tres Popp
Date: 2021-02-22T09:34:38+01:00
New Revision: 5b20d80a03ba8848bb0504dd70dc46aa47037fd2

URL: https://github.com/llvm/llvm-project/commit/5b20d80a03ba8848bb0504dd70dc46aa47037fd2
DIFF: https://github.com/llvm/llvm-project/commit/5b20d80a03ba8848bb0504dd70dc46aa47037fd2.diff

LOG: [mlir] Mark std.subview as NoSideEffect

Differential Revision: https://reviews.llvm.org/D96951

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/StandardOps/IR/Ops.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
index 82b4717b6bc11..2bcae1cb8f04f 100644
--- a/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
+++ b/mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
@@ -2587,7 +2587,7 @@ def SubIOp : IntBinaryOp<"subi"> {
 
 def SubViewOp : BaseOpWithOffsetSizesAndStrides<
     "subview", [DeclareOpInterfaceMethods<ViewLikeOpInterface>,
-                OffsetSizeAndStrideOpInterface] >  {
+                NoSideEffect, OffsetSizeAndStrideOpInterface] >  {
   let summary = "memref subview operation";
   let description = [{
     The "subview" operation converts a memref type to another memref type


        


More information about the Mlir-commits mailing list