Removed old "constmap" from wreduce code

This commit is contained in:
Clifford Wolf 2014-08-05 16:53:53 +02:00
parent 523df73145
commit 5b3dc07b9a
1 changed files with 2 additions and 3 deletions

View File

@ -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++;
}