[MLIR][SCF] Remove unused arguments to whileop
authorWilliam S. Moses <gh@wsmoses.com>
Tue, 11 Jan 2022 23:45:17 +0000 (18:45 -0500)
committerWilliam S. Moses <gh@wsmoses.com>
Wed, 12 Jan 2022 01:18:08 +0000 (20:18 -0500)
commitd23fa4f2f1319039b7d939a4bf68c493ba26b07a
treec9bda906ac9fb85a3b97b3b5ece2038ea234b272
parentf0b2a1a629dab17f2ea161a9281d8dc63b37a7a0
[MLIR][SCF] Remove unused arguments to whileop

Canonicalize away unused arguments to the before region of a whileOp

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D117059
mlir/include/mlir/Dialect/SCF/SCFOps.td
mlir/lib/Dialect/SCF/SCF.cpp
mlir/test/Dialect/SCF/canonicalize.mlir