summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-15 11:29:09 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-15 11:29:09 +0200
commit2cbdbaad1f81f76422455901f1987d886fa10d19 (patch)
tree806221f5c9a6e682ecb9a9d52f4ba15e8ce8cf93
parent2442eb38327f42e1e786f7dd9ddf1838bf2bf4b4 (diff)
Fixed wreduce $shiftx handling
-rw-r--r--passes/opt/wreduce.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/passes/opt/wreduce.cc b/passes/opt/wreduce.cc
index 9e43bb90..58a6d1b0 100644
--- a/passes/opt/wreduce.cc
+++ b/passes/opt/wreduce.cc
@@ -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)