diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-08-05 16:53:53 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-08-05 16:53:53 +0200 |
commit | 5b3dc07b9a571771afbe356e30046633037b9814 (patch) | |
tree | 312aac75fe6eeb0c3fa3c1418e781c0b9e7da07f /passes | |
parent | 523df7314502e2674df5287289dcf8eb204c17ac (diff) | |
download | yosys-5b3dc07b9a571771afbe356e30046633037b9814.tar.gz yosys-5b3dc07b9a571771afbe356e30046633037b9814.tar.bz2 yosys-5b3dc07b9a571771afbe356e30046633037b9814.zip |
Removed old "constmap" from wreduce code
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/wreduce.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/passes/cmds/wreduce.cc b/passes/cmds/wreduce.cc index 27571eb0d..1d296da54 100644 --- a/passes/cmds/wreduce.cc +++ b/passes/cmds/wreduce.cc @@ -54,7 +54,6 @@ struct WreduceWorker std::set<Cell*, IdString::compare_ptr_by_name<Cell>> work_queue_cells; std::set<SigBit> work_queue_bits; - SigMap constmap; WreduceWorker(WreduceConfig *config, Module *module) : config(config), module(module), mi(module) { } @@ -145,10 +144,10 @@ struct WreduceWorker } if (is_signed) { - while (SIZE(sig) > 1 && constmap(sig[SIZE(sig)-1]) == constmap(sig[SIZE(sig)-2])) + while (SIZE(sig) > 1 && sig[SIZE(sig)-1] == sig[SIZE(sig)-2]) work_queue_bits.insert(sig[SIZE(sig)-1]), sig.remove(SIZE(sig)-1), bits_removed++; } else { - while (SIZE(sig) > 1 && constmap(sig[SIZE(sig)-1]) == S0) + while (SIZE(sig) > 1 && sig[SIZE(sig)-1] == S0) work_queue_bits.insert(sig[SIZE(sig)-1]), sig.remove(SIZE(sig)-1), bits_removed++; } |