From: Mingyu Gao Date: Mon, 10 Aug 2015 20:01:44 +0000 (-0700) Subject: Bugfix for cell hash cache option in opt_share. X-Git-Tag: yosys-0.6~203 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c4c62f3e1f6d0e6128c4b88f764cc58a744aee8;p=yosys.git Bugfix for cell hash cache option in opt_share. --- diff --git a/passes/opt/opt_share.cc b/passes/opt/opt_share.cc index 39bc98210..46752e43b 100644 --- a/passes/opt/opt_share.cc +++ b/passes/opt/opt_share.cc @@ -273,7 +273,9 @@ struct OptShareWorker } } log(" Removing %s cell `%s' from module `%s'.\n", cell->type.c_str(), cell->name.c_str(), module->name.c_str()); +#ifdef USE_CELL_HASH_CACHE cell_hash_cache.erase(cell); +#endif module->remove(cell); total_count++; } else {