Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add opt for eliminating concat->slices (#3688)
Summary: Skip unnecessary patterns where we see a concat followed by slices of its output, where we can eliminate both concat and slices. For example the following graph: <img width="1226" alt="Screen Shot 2019-10-26 at 12 22 26 AM" src="https://user-images.githubusercontent.com/1198212/67615893-bbcd8f00-f786-11e9-8921-0fbb91eed09c.png"> Is transformed into: <img width="1226" alt="Screen Shot 2019-10-26 at 12 23 17 AM" src="https://user-images.githubusercontent.com/1198212/67615900-d142b900-f786-11e9-8b95-5d91578013c8.png"> Pull Request resolved: #3688 Differential Revision: D18159045 Pulled By: jfix71 fbshipit-source-id: 1669797d1bfe7498329a13712924f417bcc325ba
- Loading branch information
1 parent
59c33b9
commit a13d88d
Showing
3 changed files
with
103 additions
and
10 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