-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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: Srishti Srivastava <srishti.srivastava@polymagelabs.com> Differential Revision: https://reviews.llvm.org/D105418
- Loading branch information
1 parent
1894c89
commit 0c1a773
Showing
2 changed files
with
123 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters