Mark std.view as no-sideeffect.

The same reasoning as for std.subview applies.

PiperOrigin-RevId: 280639308
Change-Id: I48a794679f3c972b40fdce9222b66f2dbe60af40
This commit is contained in:
Stephan Herhut 2019-11-15 05:27:57 -08:00 committed by TensorFlower Gardener
parent 8665f610ab
commit 4ff2916c8c

View File

@ -1151,7 +1151,7 @@ def TruncateIOp : Std_Op<"trunci", [NoSideEffect, SameOperandsAndResultShape]> {
}];
}
def ViewOp : Std_Op<"view"> {
def ViewOp : Std_Op<"view", [NoSideEffect]> {
let summary = "memref view operation";
let description = [{
The "view" operation converts a 1-D memref with i8 element type,