[MLIR] Fix lowering of Affine IfOp in the presence of yield values.
authorGaurav Shukla <gaurav.shukla@polymagelabs.com>
Wed, 17 Mar 2021 10:18:33 +0000 (15:48 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Wed, 17 Mar 2021 11:03:32 +0000 (16:33 +0530)
commit8e3075c2b07e59aca38cf2e105e6122d6818183b
tree4e172cb651df81116989a079ce77a2a3ba2520c8
parent3c25c40d51e80492ad4368c6bfdf37e02848f49d
[MLIR] Fix lowering of Affine IfOp in the presence of yield values.

This commit fixes the lowering of `Affine.IfOp` to `SCF.IfOp` in the
presence of yield values. These changes have been made as a part of
`-lower-affine` pass.

Differential Revision: https://reviews.llvm.org/D98760
mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
mlir/test/Conversion/AffineToStandard/lower-affine.mlir