-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nikolaj Bjorner <[email protected]>
- Loading branch information
1 parent
8efa3c8
commit 994dab8
Showing
1 changed file
with
37 additions
and
0 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
994dab8
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.
This commit fixes a performance bug introduced when the th_rewriter was fixed to apply substitutions to patterns.
Most of the time substitution into patterns is a no-op. The solution is to add a cheapter pre-filter on substitutions into patterns that check whether any sub-term in a pattern is potentially affected.
If no sub-term is affected, bail.