Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reveal_at_least, a more clever form of reveal (#1167)
Depth determines which indices get expanded, but all references to the same index get expanded if they appear in the output. This is because Joel's latest examples require a rewriting pass that needs either uneven revealing or the ability to check expression equality modulo the dag in the middle of rewriting. #1134 (comment) Roughly the issue is that if we want to turn `a + 4 * a` into `5 * a`, we need to reveal enough structure to see `4 * a`, but we need to see that the two instances of `a` are the same (e.g., if `a` is an ExprRef pointing to `b|c`, and we reveal uniformly, then we need to recognize `b|c + 4 * a`)
- Loading branch information
1 parent
d8b3f3f
commit 93ceed7
Showing
1 changed file
with
80 additions
and
2 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