[MLIR][SCF] Combine nested ifs with yields
authorWilliam S. Moses <gh@wsmoses.com>
Thu, 17 Mar 2022 17:01:33 +0000 (13:01 -0400)
committerWilliam S. Moses <gh@wsmoses.com>
Fri, 18 Mar 2022 17:00:28 +0000 (13:00 -0400)
commitdbe96c8da02141541d7fbde0775494235b98089a
tree6cad58b5b34c133652f1b15d3e8f366b751d3a3c
parent5ab421fb4e0e32383af394ef8d861a0bba8e11ee
[MLIR][SCF] Combine nested ifs with yields

This patch extends the existing combine nested if
combination canonicalization to also handle ifs which
yield values

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D121923
mlir/lib/Dialect/SCF/SCF.cpp
mlir/test/Dialect/SCF/canonicalize.mlir