From 3dd552c4a22133216ff9d76cc09b220e62841e64 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 27 May 2013 22:39:59 -0400 Subject: [PATCH] Duplicate clock gate optimization on by default, use -Od to disable --- Changes | 2 ++ src/V3Options.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 244f99fb6..f04fe554c 100644 --- a/Changes +++ b/Changes @@ -7,6 +7,8 @@ indicates the contributor was also the author of the fix; Thanks! ** Support interfaces and modports, bug102. [Byron Bradley, Jeremy Bennett] +*** Duplicate clock gate optimization on by default, bug621. + **** Fix arrayed input compile error, bug645. [Krzysztof Jankowski] **** Fix GCC version runtime changes, bug651. [Jeremy Bennett] diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 560be0e33..e901b7836 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -1307,7 +1307,7 @@ void V3Options::optimize(int level) { m_oSubst = flag; m_oSubstConst = flag; m_oTable = flag; - m_oDedupe = level >= 3; + m_oDedupe = flag; // And set specific optimization levels if (level >= 3) { m_inlineMult = -1; // Maximum inlining