-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt: Enhance optsteps command to support exploration rules
The current version of the optsteps command doesn't handle exploration rules very well. This is because exploration rules are not guaranteed to produce a lower cost tree. Unless extra measures are taken, the returned ExprView would not included the changed portion of the Memo, since ExprView only shows the lowest cost path through the Memo. The solution is to figure out which portion(s) of the tree are affected by a transformation, and then use an alternate Coster that fools the optimizer into thinking that any new expression(s) are the lowest cost. It does this by assigning an infinite cost to the "real" best expressions. The alternate expressions are now shown in the optsteps output, but are deemphasized using different header text in order to show these are not truly the lowest cost expressions. Release note: None
- Loading branch information
1 parent
e062a27
commit 9dff6e9
Showing
15 changed files
with
940 additions
and
263 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
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
Oops, something went wrong.