summaryrefslogtreecommitdiff
path: root/passes
diff options
context:
space:
mode:
Diffstat (limited to 'passes')
-rw-r--r--passes/opt/opt_rmunused.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/passes/opt/opt_rmunused.cc b/passes/opt/opt_rmunused.cc
index 3276ad62..c72a4587 100644
--- a/passes/opt/opt_rmunused.cc
+++ b/passes/opt/opt_rmunused.cc
@@ -123,10 +123,10 @@ static bool check_public_name(RTLIL::IdString id)
if (id[0] == '$')
return false;
#if 0
- if (id.find(".$") == std::string::npos)
- return true;
+ if (id.find(".$") != std::string::npos)
+ return false;
#endif
- return false;
+ return true;
}
static void rmunused_module_signals(RTLIL::Module *module)