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~202^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=021b4a24364607de81e5b2dfdd4764d367c5bfb5;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 {