Skip to content
Commit 0c1a7730 authored by Srishti Srivastava's avatar Srishti Srivastava Committed by Uday Bondhugula
Browse files

[MLIR] Simplify affine.if having yield values and trivial conditions



When an affine.if operation is returning/yielding results and has a
trivially true or false condition, then its 'then' or 'else' block,
respectively, is promoted to the affine.if's parent block and then, the
affine.if operation is replaced by the correct results/yield values.
Relevant test cases are also added.

Signed-off-by: default avatarSrishti Srivastava <srishti.srivastava@polymagelabs.com>

Differential Revision: https://reviews.llvm.org/D105418
parent 1894c893
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment