-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Comb][Fold] Fix idemp n^2 and bugfix + more optimization. (#7514)
* Fix n^2 behavior with canonicalizeIdempotentInputs. Add arbitrary "depth" check to bound the search. * Don't allow flattening or idempotent to search into operations defined in other blocks. * Support removing duplicates even when operands come from other blocks. (or(x, y, x) -> or(x, x) regardless of their origin). * Don't walk into operations with different two-state-ness in the idempotent operand canonicalizer. * When creating new operation in idempotent canonicalizer, create it with matching two-state-ness. Add tests for functional changes above.
- Loading branch information
Showing
2 changed files
with
97 additions
and
26 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