Unverified Commit 0b1391a6 authored by Kevin Laeufer's avatar Kevin Laeufer Committed by GitHub
Browse files

FlattenSpec: flattening a module with no instaces should be a no-op (#1868)



* FlattenSpec: flattening a module with no instaces should be a no-op

* Fix problem when flattening/inlining a lone module

Fix an edge case bug in InlineInstances where a circuit containing a
lone module is flattened/inlined. This now properly special cases the
situation of an empty indexMap which before had to be of length >= 1.

Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>

* Simplify rename logic in InlineInstances

Co-authored-by: default avatarJack Koenig <koenig@sifive.com>
Co-authored-by: default avatarAlbert Magyar <albert.magyar@gmail.com>
Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>

* Mea culpa

Signed-off-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>

Co-authored-by: default avatarSchuyler Eldridge <schuyler.eldridge@ibm.com>
Co-authored-by: default avatarJack Koenig <koenig@sifive.com>
Co-authored-by: default avatarAlbert Magyar <albert.magyar@gmail.com>
parent 7174098c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment