-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIRRTL] Memoize calls to shouldCreateClass in LowerClasses, NFC.
This is already called in multiple places, and we will soon use it in another situation. This can be expensive, so it is worth memoizing to avoid repeatedly traversing the module bodies in the slow case.
- Loading branch information
1 parent
e438ac0
commit 13b9456
Showing
1 changed file
with
25 additions
and
6 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