-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transformations: (cf) cf.cond_br identical successors (#3284)
Adds simplification to `cf.cond_br` when both branches point to the same successor. The mlir version only performs the reduction when either all the operands are the same, or the common destination branch only has one predecessor. For now this precondition has not been included in the implementation. Also updates some of the other tests which now reduce further --------- Co-authored-by: Sasha Lopoukhine <[email protected]>
- Loading branch information
1 parent
a7d8ebe
commit f0a74f1
Showing
3 changed files
with
70 additions
and
5 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
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