[mlir] Add a pattern to fold single- and zero-iteration scf.forall ops.
authorAlexander Belyaev <pifon@google.com>
Tue, 21 Mar 2023 10:56:08 +0000 (11:56 +0100)
committerAlexander Belyaev <pifon@google.com>
Tue, 21 Mar 2023 10:59:25 +0000 (11:59 +0100)
commit3a8f161a3401edeb58e018e2d389dd2413a6417f
tree21c13a5bf3e03872557881deb44450745f4d1b36
parent0165b73be37c2330ae196799cb3d93445532072b
[mlir] Add a pattern to fold single- and zero-iteration scf.forall ops.

Differential Revision: https://reviews.llvm.org/D145368
mlir/include/mlir/Dialect/SCF/IR/SCF.h
mlir/include/mlir/Dialect/Utils/StaticValueUtils.h
mlir/lib/Dialect/SCF/IR/SCF.cpp
mlir/lib/Dialect/SCF/Utils/Utils.cpp
mlir/lib/Dialect/Utils/StaticValueUtils.cpp
mlir/test/Dialect/SCF/canonicalize.mlir
mlir/test/Dialect/Tensor/fold-consecutive-insert-extract-slice.mlir