Fixed wreduce $shiftx handling
authorClifford Wolf <clifford@clifford.at>
Mon, 15 Sep 2014 09:29:09 +0000 (11:29 +0200)
committerClifford Wolf <clifford@clifford.at>
Mon, 15 Sep 2014 09:29:09 +0000 (11:29 +0200)
passes/opt/wreduce.cc

index 9e43bb902faf08ac17550a2b99311aac1e82339a..58a6d1b0d66bb788b358cb436d44e9c7a7b6e5c7 100644 (file)
@@ -186,7 +186,7 @@ struct WreduceWorker
                bool port_a_signed = false;
                bool port_b_signed = false;
 
-               if (max_port_a_size >= 0)
+               if (max_port_a_size >= 0 && cell->type != "$shiftx")
                        run_reduce_inport(cell, 'A', max_port_a_size, port_a_signed, did_something);
 
                if (max_port_b_size >= 0)