-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[NNC] Fuse identical conditions in simplifier #44886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
navahgar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good to me. Just a couple minor corrections in tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/j/i to make sure that simplification does not happen because of 10 != 11.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/j/i - same as above to make sure that LT v GT is the problem here.
Codecov Report
@@ Coverage Diff @@
## master #44886 +/- ##
==========================================
- Coverage 67.90% 67.89% -0.01%
==========================================
Files 384 384
Lines 49890 49890
==========================================
- Hits 33876 33873 -3
- Misses 16014 16017 +3
Continue to review full report at Codecov.
|
|
Good catches, thanks. |
f906fd8 to
00e48b3
Compare
facebook-github-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nickgg has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Adds a pass to the IR Simplifier which fuses together the bodies of Cond statements which have identical conditions. e.g.
is transformed into: