mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-10-06 01:53:53 +02:00
twines: only GC the active design
This commit is contained in:
+2
-2
@@ -58,8 +58,8 @@ void try_collect_garbage()
|
||||
if (!GarbageCollectionGuard::is_enabled() || !garbage_collection_requested)
|
||||
return;
|
||||
garbage_collection_requested = false;
|
||||
for (auto &[idx, design] : *RTLIL::Design::get_all_designs())
|
||||
design->gc_twines();
|
||||
if (yosys_design)
|
||||
yosys_design->gc_twines();
|
||||
}
|
||||
|
||||
Pass::Pass(std::string name, std::string short_help, source_location location) :
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ public:
|
||||
// Call from anywhere to request GC at the next safe point.
|
||||
void request_garbage_collection();
|
||||
|
||||
// GC if GarbageCollectionGuard::is_enabled() and GC was requested.
|
||||
// GC the active design if GarbageCollectionGuard::is_enabled() and GC was requested.
|
||||
void try_collect_garbage();
|
||||
|
||||
struct Pass
|
||||
|
||||
Reference in New Issue
Block a user