diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-21 11:52:51 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-21 11:52:51 -0700 |
commit | 15535112b7b4caa1da75274397c5a3ba885a7349 (patch) | |
tree | 0b7b6973bf6df5e87cbc830dc9933e6f5513aa46 | |
parent | d89d663c92853fcd7f9d75b392ec4133ba2f1d89 (diff) | |
download | yosys-15535112b7b4caa1da75274397c5a3ba885a7349.tar.gz yosys-15535112b7b4caa1da75274397c5a3ba885a7349.tar.bz2 yosys-15535112b7b4caa1da75274397c5a3ba885a7349.zip |
Fix spacing
-rw-r--r-- | passes/opt/muxpack.cc | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/passes/opt/muxpack.cc b/passes/opt/muxpack.cc index c8b226c78..4468e8734 100644 --- a/passes/opt/muxpack.cc +++ b/passes/opt/muxpack.cc @@ -52,30 +52,30 @@ struct ExclusiveDatabase } else continue; - log_assert(!nonconst_sig.empty()); - log_assert(!const_sig.empty()); - sig_cmp_prev[y_port] = std::make_pair(nonconst_sig,const_sig.as_const()); - } - } - - bool query(const SigSpec &sig) const - { - SigSpec nonconst_sig; - pool<Const> const_values; - - for (auto bit : sig.bits()) { - auto it = sig_cmp_prev.find(bit); - if (it == sig_cmp_prev.end()) - return false; - - if (nonconst_sig.empty()) - nonconst_sig = it->second.first; - else if (nonconst_sig != it->second.first) - return false; - - if (!const_values.insert(it->second.second).second) - return false; - } + log_assert(!nonconst_sig.empty()); + log_assert(!const_sig.empty()); + sig_cmp_prev[y_port] = std::make_pair(nonconst_sig,const_sig.as_const()); + } + } + + bool query(const SigSpec &sig) const + { + SigSpec nonconst_sig; + pool<Const> const_values; + + for (auto bit : sig.bits()) { + auto it = sig_cmp_prev.find(bit); + if (it == sig_cmp_prev.end()) + return false; + + if (nonconst_sig.empty()) + nonconst_sig = it->second.first; + else if (nonconst_sig != it->second.first) + return false; + + if (!const_values.insert(it->second.second).second) + return false; + } return true; } |