From 021b4a24364607de81e5b2dfdd4764d367c5bfb5 Mon Sep 17 00:00:00 2001 From: Mingyu Gao Date: Mon, 10 Aug 2015 13:01:44 -0700 Subject: [PATCH] Bugfix for cell hash cache option in opt_share. --- passes/opt/opt_share.cc | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.30.2