From 5b3dc07b9a571771afbe356e30046633037b9814 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 5 Aug 2014 16:53:53 +0200 Subject: [PATCH] Removed old "constmap" from wreduce code --- passes/cmds/wreduce.cc | 5 ++--- 1 file 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> work_queue_cells; std::set 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++; } -- 2.30.2