-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIRRTL][Dedup] Fix cloning annotations for more context (#4285)
When we merge two modules, sometimes we have to add more context to a non-local annotation. When this happens, we create a new hierarchical path operation and update all annotations to use the new path. In order for us to find all annotations which need to be updated, we store a mapping, `targetMap`, from each HierPathOp to the annotations that reference them. This fixes a bug where we were not keeping the `targetMap` updated when we copy a non-local annotation when deduping operations. This is a regression from 46e9b21, where we stopped updating the target map. See 46e9b21#diff-d0c16a1337e2a6200ae0f4c763fadb7ddaa3f8b389130aa04cd1e61ff2fba7eaL896 for the exact line that was removed.
- Loading branch information
Showing
2 changed files
with
101 additions
and
1 deletion.
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