Bugfix for cell hash cache option in opt_share.
authorMingyu Gao <mgao12@stanford.edu>
Mon, 10 Aug 2015 20:01:44 +0000 (13:01 -0700)
committerClifford Wolf <clifford@clifford.at>
Tue, 11 Aug 2015 09:40:23 +0000 (11:40 +0200)
passes/opt/opt_share.cc

index 39bc98210629a9966d77439e5474b8e4efeb775c..46752e43b3e5fae68663460cde82e43381c88910 100644 (file)
@@ -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 {