Mark std.subview as no-sideeffect.
authorStephan Herhut <herhut@google.com>
Fri, 15 Nov 2019 11:59:57 +0000 (03:59 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 15 Nov 2019 12:00:31 +0000 (04:00 -0800)
commit9c7bceb4fe5144fbe1ef4f1cdda3c802fb272248
tree77a8266c6f444c241d8b956fc1aecba467eed062
parent95d5d359582c4f43f2dd4796584df86847af0336
Mark std.subview as no-sideeffect.

In essence, std.subview is just an abstract indexing transformation (somewhat
akin to a gep in llvm) and by itself has no effect. From a practical perspective
this helps, as it allows to remove dead subview operations.

PiperOrigin-RevId: 280630046
mlir/include/mlir/Dialect/StandardOps/Ops.td
mlir/test/Transforms/canonicalize.mlir