Skip to content

Commit c497b3b

Browse files
committed
Revert "rtlil: make tracing optional in IdString garbage collection"
This reverts commit 8c76f93.
1 parent 65d7d70 commit c497b3b

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

kernel/rtlil.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,14 @@ struct IdStringCollector {
246246
int64_t RTLIL::OwningIdString::gc_ns;
247247
int RTLIL::OwningIdString::gc_count;
248248

249-
void RTLIL::OwningIdString::collect_garbage(bool trace)
249+
void RTLIL::OwningIdString::collect_garbage()
250250
{
251251
int64_t start = PerformanceTimer::query();
252252
#ifndef YOSYS_NO_IDS_REFCNT
253253
IdStringCollector collector;
254-
if (trace)
255-
for (auto &[idx, design] : *RTLIL::Design::get_all_designs()) {
256-
collector.trace(*design);
257-
}
254+
for (auto &[idx, design] : *RTLIL::Design::get_all_designs()) {
255+
collector.trace(*design);
256+
}
258257
int size = GetSize(global_id_storage_);
259258
for (int i = static_cast<int>(StaticId::STATIC_ID_END); i < size; ++i) {
260259
RTLIL::IdString::Storage &storage = global_id_storage_.at(i);

kernel/rtlil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ struct RTLIL::OwningIdString : public RTLIL::IdString {
574574
}
575575

576576
// Collect all non-owning references.
577-
static void collect_garbage(bool trace = true);
577+
static void collect_garbage();
578578
static int64_t garbage_collection_ns() { return gc_ns; }
579579
static int garbage_collection_count() { return gc_count; }
580580

0 commit comments

Comments
 (0)